Commit 61235f02 by BellCodeEditor

save project

parent 8c87814b
Showing with 7 additions and 7 deletions
...@@ -15,16 +15,15 @@ yase = Hero("垭瑟") ...@@ -15,16 +15,15 @@ yase = Hero("垭瑟")
houyi= Hero("后羿") houyi= Hero("后羿")
print("-"*30) print("-"*30)
print(" 战斗开始!") print(" 战斗开始!")
addhp = 0
while True: while True:
print("-"*30) print("-"*30)
huada=input("请选择技能(1=于攻击 2=治疗):") huada=input("请选择技能(1=于攻击 2=治疗):")
if huada == q: if huada == "1":
print("游戏结束!")
elif huada == 1:
combat combat
elif huada == 2: elif huada == "2":
self.hp += 60
addhp += 25
self.hp += addhp
else: else:
huada=input("请重新选择技能:") huada=input("请重新选择技能:")
\ No newline at end of file
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