Commit e3c7e0c5 by BellCodeEditor

save project

parent 8cbff6f9
Showing with 1 additions and 1 deletions
...@@ -47,7 +47,7 @@ class Player(Hero): ...@@ -47,7 +47,7 @@ class Player(Hero):
if self.hp>self.max_hp/2: if self.hp>self.max_hp/2:
enemy.hp-=150 enemy.hp-=150
self.hp-=self.max_hp/2 self.hp-=self.max_hp/2
print(self.name+"使用大招,对"+enemy.name+"造成150伤害,"+enemy.name+"血量:"+str(enemy.hp)+self.name+",血量"+str(self.hp)) print(self.name+"使用大招,对"+enemy.name+"造成150伤害,"+enemy.name+"血量:"+str(enemy.hp)+","+self.name+"血量"+str(self.hp))
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