Commit cdd587fa by BellCodeEditor

save project

parent 55b9f820
Showing with 1 additions and 1 deletions
...@@ -11,7 +11,7 @@ class Hero(object): ...@@ -11,7 +11,7 @@ class Hero(object):
infol1=self.name+"对"+enemy.name+"发起进攻" infol1=self.name+"对"+enemy.name+"发起进攻"
infol2="造成"+str(self.attack)+"点伤害" infol2="造成"+str(self.attack)+"点伤害"
if enemy.hp>0: if enemy.hp>0:
infol3=enemy.name+"还剩下"+str(enemy.name)+"血量" infol3=enemy.name+"还剩下"+str(enemy.hp)+"血量"
infol=infol1+infol2+infol3 infol=infol1+infol2+infol3
else: else:
infol3=enemy.name+"阵亡,游戏结束" infol3=enemy.name+"阵亡,游戏结束"
......
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