Commit 856ed557 by BellCodeEditor

save project

parent 7554163e
Showing with 4 additions and 3 deletions
...@@ -44,16 +44,17 @@ print(" 战斗开始") ...@@ -44,16 +44,17 @@ print(" 战斗开始")
while True: while True:
print("🙂"*30) print("🙂"*30)
kill=input("请选择释放英雄技能(1 攻击/2 治疗):") kill=input("请选择释放英雄技能(1 攻击/2 治疗):")
if kill == "p": if kill == "p"
break break
if kill == "2": if kill == "2":
houyi.cure() houyi.cure()
if kill == "1": if kill == "1":
houyi.combat(yase) houyi.combat(yase)
else: else:
print("从新输入") print("")
continue continue
pkill = random.randint(1,3) pkill = random.randint(1,2)
if pkill == 1: if pkill == 1:
yase.combat(houyi) yase.combat(houyi)
if pkill == 2: if pkill == 2:
......
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