Commit 61235f02 by BellCodeEditor

save project

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