Commit eeffb4a5 by BellCodeEditor

save project

parent f11a484d
Showing with 1 additions and 1 deletions
......@@ -15,7 +15,7 @@ yase = Hero("垭瑟",300,20)
#print("等级为:",yase.level)
#print("血量为:",yase.hp)
#print("攻击力为:",yase.attack)
del combat(self,enemy):
def combat(self,enemy):
info1 = self.name+"对"+enemy.name+"发起进攻,"
info2 = "造成"+str(self.attack)+"点伤害,"
enemy.hp -=selfattack
......
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