Commit 6beeab98 by BellCodeEditor

save project

parent c60f0ff9
Showing with 5 additions and 1 deletions
...@@ -9,4 +9,7 @@ class Hero(object): ...@@ -9,4 +9,7 @@ class Hero(object):
def combat(self.name): # 攻击 def combat(self.name): # 攻击
enemy.hp=enemy.hp-sele.attack enemy.hp=enemy.hp-sele.attack
info1=self.name+'对'+enemy.name+'加发动攻击' info1=self.name+'对'+enemy.name+'加发动攻击'
info2='造成' info2='造成'+str(self.attack)+点伤害
info3=enemy.name+'还剩下'+ srt(enemy.hp)+'血量'
\ No newline at end of file
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