Commit c7ce5b13 by BellCodeEditor

save project

parent 3e7f04f8
Showing with 6 additions and 3 deletions
...@@ -39,13 +39,15 @@ class Player(Hero): ...@@ -39,13 +39,15 @@ class Player(Hero):
print("-"*50) print("-"*50)
houyi = Player("射手", "后羿")#yase = Player("战士","垭瑟") houyi = Player("射手", "后羿")#yase = Player("战士","垭瑟")
yase = Hero("垭瑟")#houyi = Hero("射手", "后羿") yase = Hero("垭瑟")#houyi = Hero("射手", "后羿")
a = input("你要使用什么技能?(1攻击/2治疗)") print(" 战斗开始!")
print("-"*50)
while True: while True:
a = input("你要使用什么技能?(1攻击/2治疗)")
if a==1: if a==1:
houyi.combat(yase) houyi.combat(yase)
if a==2: if a==2:
houyi.cure() houyi.cure()
houyi.combat(yase) # houyi.combat(yase)
yase.combat(houyi) # yase.combat(houyi)
# houyi.cure() # houyi.cure()
# yase.cure() # 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