Commit 5f35c4f9 by BellCodeEditor

save project

parent 8fe92c07
Showing with 2 additions and 2 deletions
...@@ -47,8 +47,8 @@ class Player(Hero): ...@@ -47,8 +47,8 @@ class Player(Hero):
print(self.name+"使用了治疗,血量增加:",str(c),",目前的血量为:",self.hp) print(self.name+"使用了治疗,血量增加:",str(c),",目前的血量为:",self.hp)
def cure(self): # 治疗 def cure(self): # 治疗
blood = random.randint(1,100) b = random.randint(1,100)
if num < 30: if b < 30:
self.hp = 250 self.hp = 250
print(self.name+"使用了治疗,血量回满:") print(self.name+"使用了治疗,血量回满:")
else: else:
......
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