Commit 8eebb870 by BellCodeEditor

save project

parent 23aa2cb8
Showing with 20 additions and 0 deletions
...@@ -45,3 +45,22 @@ houyi.combat(yase) ...@@ -45,3 +45,22 @@ houyi.combat(yase)
yase.combat(houyi) yase.combat(houyi)
houyi.cure() houyi.cure()
yase.cure() yase.cure()
def cure(self): # 治疗
zbc= random.randint(30,100)
self.hp=self.hp+zbc
if self.hp>self.m:
self.hp=self.m
\ 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