Commit 2a396636 by BellCodeEditor

save project

parent 5de6ce61
Showing with 2 additions and 1 deletions
...@@ -4,7 +4,7 @@ class Hero(): ...@@ -4,7 +4,7 @@ class Hero():
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
def upgrade(self,hp,attack): def upgrade(self,hp,attack):
self.level++ self.level+=1
self.hp+=500 self.hp+=500
self.attack+=75 self.attack+=75
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