Commit 57665e18 by BellCodeEditor

save project

parent 1908b6f2
Showing with 13 additions and 2 deletions
......@@ -39,4 +39,16 @@ yase = Hero("垭瑟")
houyi.combat(yase)
yase.combat(houyi)
houyi.cure()
yase.cure()
\ No newline at end of file
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