Commit 067842b6 by BellCodeEditor

save project

parent c70b8f65
Showing with 6 additions and 0 deletions
......@@ -18,6 +18,12 @@ class Hero:
info = info1 + info2 + info3
print(info)
exit()
def cure(self):
self.hp+=60
if self.hp>self.max_hp:
self.hp=self.max_hp
class Player(Hero):
def__init__(selp,name,hero_type):
super().__init__(name)
......
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