Commit cb8570cb by BellCodeEditor

save project

parent 58e184f7
Showing with 6 additions and 1 deletions
...@@ -54,7 +54,12 @@ class Player(Hero): ...@@ -54,7 +54,12 @@ class Player(Hero):
if enemy.hp > 0: if enemy.hp > 0:
print(self.name+"使用大招,对"+enemy.name+"造成200伤害,"+enemy.name+"血量:"+str(enemy.hp)+","+self.name+"血量"+str(self.hp)) print(self.name+"使用大招,对"+enemy.name+"造成200伤害,"+enemy.name+"血量:"+str(enemy.hp)+","+self.name+"血量"+str(self.hp))
else: else:
print(enemy.name+"阵亡") print(enemy.name+"阵亡")
if enemy.name=="垭瑟":
print("玩家胜利")
else:
print("电脑胜利")
exit()
else: else:
pass pass
houyi = Player("射手", "后羿") houyi = Player("射手", "后羿")
......
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