Commit 5bfa3cce by BellCodeEditor

save project

parent 5bb50e9a
Showing with 2 additions and 4 deletions
...@@ -5,10 +5,8 @@ class Hero: ...@@ -5,10 +5,8 @@ class Hero:
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
def upgrade() def upgrade(self)
yase.level=yase.level+1 self.hp=self.hp+100
yase.hp=yase.hp+100
yase.attack=tase.attack+5
yase=Hero("eee",100,8) yase=Hero("eee",100,8)
yase.upgrade() yase.upgrade()
......
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