Commit 3e6fac01 by BellCodeEditor

save project

parent c6aef541
Showing with 5 additions and 0 deletions
......@@ -21,6 +21,11 @@ class Hero:
print(info)
exit()
def cure(self):
self.hp = self.hp+60
if self.hp>self.max_hp:
self.hp=self.max_hp
print(self.name+"使用来治疗,血量增加:",60,"self.hp")
class Player(Hero): # 玩家英雄
def __init__(self,name,hero_type):
......
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