Commit ba7e9e1b by BellCodeEditor

auto save

parent 4c27c166
Showing with 6 additions and 0 deletions
...@@ -66,6 +66,12 @@ while True: ...@@ -66,6 +66,12 @@ while True:
yase.cure() yase.cure()
else: else:
yase.combat(houyi) yase.combat(houyi)
def cure(self):
blood=random.randint(30,50) # 治疗
self.hp+=blood
if self.hp>self.max_hp:
self.hp=self.max_hp
print(self.name+"使用了治疗,血量增加:", blood,"目前的血量为:",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