Commit e53e6a98 by BellCodeEditor

save project

parent 5f95bf96
Showing with 21 additions and 1 deletions
class Hero(object): class Hero(object):
def __init__(self, name): def __init__(self, name):
self.name = name self.name = name
...@@ -46,11 +47,30 @@ while True: ...@@ -46,11 +47,30 @@ while True:
if choice if choice
print("退出游戏") print("退出游戏")
break break
elif choice =="1" elif choice == "1":
houyi.combat(yase)
elif choice == "2":
houyi.cure()
else:
print("重新选择有效技能")
#houyi.combat(yase) #houyi.combat(yase)
#yase.combat(houyi) #yase.combat(houyi)
#houyi.cure() #houyi.cure()
......
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