Commit 2afaa5b5 by BellCodeEditor

save project

parent 7e98bd40
Showing with 4 additions and 2 deletions
......@@ -4,7 +4,7 @@ class hero:
self.name=name
self.hp=hp
self.attack=attack
def combat(self,enemy):
enemy.hp -=self.attack
info1 = self.name+"对"+enemy.name+"发起进攻"
......@@ -28,4 +28,5 @@ class hero:
#houyi.upgrade()
#print("等级为:",houyi.level)
#print("血量为:",houyi.hp)
#print("攻击力为:",houyi.attack)
#print("攻击力为:",houyi.attack)class hero:
\ 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