Commit 5f49ebd7 by BellCodeEditor

save project

parent 4d59485f
Showing with 28 additions and 4 deletions
...@@ -45,17 +45,41 @@ while True: ...@@ -45,17 +45,41 @@ while True:
print("-"*45) print("-"*45)
choin=input("请选择英雄释放技能(攻击:1 治疗:2)") choin=input("请选择英雄释放技能(攻击:1 治疗:2)")
if choin=="q": if choin=="q":
print("退出游戏") print("游戏结束")
break break
elif choin=="1": elif choin=="1":
houyi.combat(yase) houyi.combat(yase)
elif choin=="2": elif choin=="2":
houyi.cure() houyi.cure()
else: else:
print("请重新输入1或2") print("请重新输入1或2.")
continue continue
nom=random.randint(1,3) nom=random.randint(1,3)
if nom==1: if nom==1:
yase.combat(houyi) yase.combat(houyi)
else: else:
yase.cure() yase,cure()
\ No newline at end of file
\ 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