Commit 038a800d by BellCodeEditor

save project

parent 02038803
Showing with 16 additions and 2 deletions
......@@ -43,4 +43,18 @@ print('-'*30)
print(' 战斗开始')
while True:
print('-'*30)
choice=input("请选择释放的技能(1/攻击,2/治疗):")
\ No newline at end of file
choice=input("请选择释放的技能(1/攻击,2/治疗,q/退出游戏,其余无效!):")
if choice=="1":
houyi.combat(yase)
elif choice=="2":
houyi.cure()
elif choice=="q":
break
else:
print("无效字符,请输入有效字符!")
continue
num=random.randint(1,3)
if num==1:
yase.combat(houyi)
else:
yase.cure()
\ 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