Commit 92930966 by BellCodeEditor

save project

parent 2a396636
Showing with 3 additions and 2 deletions
...@@ -5,6 +5,6 @@ class Hero(): ...@@ -5,6 +5,6 @@ class Hero():
self.attack=attack self.attack=attack
def upgrade(self,hp,attack): def upgrade(self,hp,attack):
self.level+=1 self.level+=1
self.hp+=500 self.hp+=hp
self.attack+=75 self.attack+=attack
Authus=Hero(1,3000,200) Authus=Hero(1,3000,200)
\ 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