Commit 57cccf99 by BellCodeEditor

save project

parent b9e44e83
Showing with 3 additions and 1 deletions
......@@ -8,7 +8,9 @@ class Hero(object):
self.max_hp = self.hp
def cure(self): # 治疗
self.hp+=55
blood=random.randint(330,50)
self.hp+=blood
if self.hp>self.max_hp:
self.hp=self.max_hp
print(self.name,"使用治疗术,增加血量",55,"当前血量是",self.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