Commit aba1ad0a by BellCodeEditor

save project

parent e40c8537
Showing with 12 additions and 0 deletions
...@@ -10,8 +10,20 @@ def upgrade(): ...@@ -10,8 +10,20 @@ def upgrade():
yase.hp=yase.hp+50 yase.hp=yase.hp+50
yase.attack=yase.attack+4 yase.attack=yase.attack+4
def coombat():
yase.hp-=self.attack
print(hy)
yase.Hero("垭瑟",30020) yase.Hero("垭瑟",30020)
print("垭瑟的初始的血量值为:",yase.hp) print("垭瑟的初始的血量值为:",yase.hp)
upgrade() upgrade()
upgrade() upgrade()
print("升级2次后,垭瑟的血量值为":",yase.hp) print("升级2次后,垭瑟的血量值为":",yase.hp)
if enemy.hp<=0:
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