Commit f061cbe9 by BellCodeEditor

save project

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