Commit 07e276b4 by BellCodeEditor

save project

parent f514f9f3
Showing with 16 additions and 2 deletions
...@@ -44,5 +44,19 @@ print("-"*30) ...@@ -44,5 +44,19 @@ print("-"*30)
print(" 战斗开始") print(" 战斗开始")
print("-"*30) print("-"*30)
while True: while True:
input("请输入技能选项(1攻击/2治疗)") a=input("请输入技能选项(1攻击/2治疗)")
if a="1":
cure()
elif a="2":
combat(yase)
elif a="q":
print("游戏结束!")
exit()
else:
print("请输入1或2或q!")
continue
b=random.randint(1,3)
if b==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