Commit 65c1057b by BellCodeEditor

save project

parent 50f225c4
Showing with 4 additions and 1 deletions
......@@ -47,7 +47,10 @@ class Player(Hero):
if self.hp>self.max_hp/2:
enemy.hp-=200
self.hp-=self.max_hp/2
print(self.name+"使用大招,对"+enemy.name+"造成200伤害,"+enemy.name+"血量:"+str(enemy.hp)+","+self.name+"血量"+str(self.hp))
if enemy.hp > 0:
print(self.name+"使用大招,对"+enemy.name+"造成200伤害,"+enemy.name+"血量:"+str(enemy.hp)+","+self.name+"血量"+str(self.hp))
else:
print(enemy.name+"阵亡")
else:
pass
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