Commit f061cbe9 by BellCodeEditor

save project

parent 837aef8f
Showing with 8 additions and 7 deletions
...@@ -4,15 +4,16 @@ class Hero: ...@@ -4,15 +4,16 @@ class Hero:
self.name=name self.name=name
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
def upgrade(self):
yase.level += 1
yase.hp += 50
yase.attack += 5
yase=Hero('yase',300,20) yase=Hero('yase',300,20)
hy=Hero('hy',250,23) hy=Hero('hy',250,23)
k=Hero('K',5600,199)
def upgrade():
yase.level += 1 yase.upgrade()
yase.hp += 50 hy.upgrade()
yase.attack += 5
upgrade()
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