Commit 9d2b48f4 by BellCodeEditor

auto save

parent 53a1bd05
Showing with 1 additions and 1 deletions
......@@ -8,7 +8,7 @@ class Hero(object):
def combat(self,enem):
enem.hp-=self.attack
info=str(self.name)+"对"+str(enem.name)+"发起进攻,造成"+str(self.attack)+"点伤害"+str(enem.name)
info=str(self.name)+"对"+Turestr(enem.name)+"发起进攻,造成"+str(self.attack)+"点伤害"+str(enem.name)
print(info) # 攻击
if enem.hp>0:
print(str(enem.name)+"还剩"+str(enem.hp-self.attack))
......
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