Commit c2ac8e64 by BellCodeEditor

save project

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