Commit a374c6b5 by BellCodeEditor

save project

parent b0d233dd
Showing with 1 additions and 0 deletions
...@@ -8,6 +8,7 @@ class Hero(object): ...@@ -8,6 +8,7 @@ class Hero(object):
self.max_hp = self.hp self.max_hp = self.hp
def cure(self): # 治疗 def cure(self): # 治疗
self = random.randint(1,3)
info1 = self.name + "对自己治疗" info1 = self.name + "对自己治疗"
info2 = "恢复" + str(self.attack) + "血" info2 = "恢复" + str(self.attack) + "血"
self.hp += self.attack self.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