Commit 4d000932 by BellCodeEditor

save project

parent 12569819
Showing with 1 additions and 1 deletions
...@@ -8,7 +8,7 @@ class Hero(object): ...@@ -8,7 +8,7 @@ class Hero(object):
def combat(self,u): # 攻击 def combat(self,u): # 攻击
info1=self.name+'-'+u.name+'----,' info1=self.name+'-'+u.name+'----,'
info2='zc'+sfr(self.attack)+'-+-' info2='zc'+str(self.attack)+'-+-'
u.hp -= self.attack u.hp -= self.attack
if u.hp>0: if u.hp>0:
info3 = u.name+'+++'+str(u.hp)+'_+_' info3 = u.name+'+++'+str(u.hp)+'_+_'
......
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