Commit 65abca5d by BellCodeEditor

save project

parent 4d3a9bfb
Showing with 1 additions and 1 deletions
...@@ -23,7 +23,7 @@ class Hero: ...@@ -23,7 +23,7 @@ class Hero:
self.hp=self.hp+60 self.hp=self.hp+60
if self.hp>self.max_hp: if self.hp>self.max_hp:
self.hp=self.max_hp self.hp=self.max_hp
print("") print("你使用治疗术")
class Player(Hero): class Player(Hero):
def __init__(self,name,hero_type): def __init__(self,name,hero_type):
super().__init__(name) 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