Commit c2ac8e64 by BellCodeEditor

save project

parent 6a006aed
Showing with 4 additions and 4 deletions
...@@ -4,10 +4,10 @@ class Hero: ...@@ -4,10 +4,10 @@ class Hero:
self.name=name self.name=name
self.hp self.hp
self.attack self.attack
def upgrade(): def upgrade():
yase.level=yase.levle=1 self.level=yase.levle+1
yase.hp=yase.hp=50 self.hp=yase.hp+50
yase.attack=yase.attack=4 self.attack=yase.attack+4
yase=Hero("亚瑟",300,20) yase=Hero("亚瑟",300,20)
houyi=Hero("亚瑟初始血量",yase.hp) houyi=Hero("亚瑟初始血量",yase.hp)
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