Commit 50f225c4 by BellCodeEditor

save project

parent e3c7e0c5
Showing with 2 additions and 2 deletions
......@@ -45,9 +45,9 @@ class Player(Hero):
print(self.name+"使用了治疗,血量增加:",str(c),",目前的血量为:",self.hp)
def dazhao(self,enemy):
if self.hp>self.max_hp/2:
enemy.hp-=150
enemy.hp-=200
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+"造成200伤害,"+enemy.name+"血量:"+str(enemy.hp)+","+self.name+"血量"+str(self.hp))
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