Commit 09e655f7 by BellCodeEditor

save project

parent b95e8daa
Showing with 5 additions and 4 deletions
......@@ -4,8 +4,8 @@ class Hero:
self.name=name
self.hp=hp
self.attack=attack
def __init__(self,name,hp,attack):
self.level=level+1
self.hp=hp+50
self.attack=attack+12
def upgrade(self):
self.level=self.level+1
self.hp=self.hp+50
self.attack=self.attack+12
yase=Hero('yase',300,20)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment