Commit 9a36a2cf by BellCodeEditor

save project

parent 65608f3b
Showing with 3 additions and 1 deletions
...@@ -5,7 +5,9 @@ class Hero: ...@@ -5,7 +5,9 @@ class Hero:
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
yase=Hero('yase',300,20) yase=Hero('yase',300,20)
def upgrade(): yase.hp=350
def upgrade():
level=self.level+1 level=self.level+1
hp=self.hp+50 hp=self.hp+50
attack=self.attack+4 attack=self.attack+4
......
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