Commit 9b55a5ad by BellCodeEditor

save project

parent f35887dd
Showing with 3 additions and 3 deletions
...@@ -6,9 +6,9 @@ class hero: ...@@ -6,9 +6,9 @@ class hero:
self.attack= attack self.attack= attack
def upgrade(): def upgrade():
yase.level=yase.level+1 yase.level+=1
yase.hp=yase.hp+50 yase.hp+=50
yase.attack=yase.attack+4 yase.attack+=4
yase =hero("亚瑟",300,20) yase =hero("亚瑟",300,20)
houyi =hero("后羿",240,23) houyi =hero("后羿",240,23)
......
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