Commit dcfc7a8e by BellCodeEditor

save project

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