Commit 57665e18 by BellCodeEditor

save project

parent 1908b6f2
Showing with 12 additions and 0 deletions
...@@ -40,3 +40,15 @@ houyi.combat(yase) ...@@ -40,3 +40,15 @@ houyi.combat(yase)
yase.combat(houyi) yase.combat(houyi)
houyi.cure() houyi.cure()
yase.cure() yase.cure()
def cure(self)
self.hp=self.hp+60
if self.hp>self.max_hp:
self.hp=self.max_hp:
print(self.name+"0",60,"",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