Commit e7118a29 by BellCodeEditor

save project

parent 5addc922
Showing with 12 additions and 4 deletions
...@@ -52,8 +52,16 @@ print('战斗开始') ...@@ -52,8 +52,16 @@ print('战斗开始')
while True: while True:
print('-'*30) print('-'*30)
a=input('请选择释放英雄技能(1攻击/2治疗)') a=input('请选择释放英雄技能(1攻击/2治疗)')
if a=='p': if a=='1':
print('游戏结束')
exit()
elif a=='1':
houyi.combat(yase) houyi.combat(yase)
elif a=='2':
houyi.cure()
elif a=='q':
break
else:
continue
i=random.randint(1,3)
if i==1:
yase.cure()
else:
yase.combat(houyi)
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