Commit 845b29de by BellCodeEditor

auto save

parent 122060f1
Showing with 2 additions and 4 deletions
......@@ -17,15 +17,13 @@ class Hero:
else:
info3 = enemy.name+"阵亡,游戏结束"
info = info1+info2+info3
print(info)1
1
print(info)
exit()
def cure(self):
j=random.randint(30,50)
self.hp=self.hp+60
if self.hp>self.max_hp:
self.hp=self.max_hp
print(self.name+"使用了治疗,血量增加:",j,"目前些血量为:",self.hp)
print(self.name+"使用了治疗,血量增加:",60,"目前些血量为:",self.hp)
class Player(Hero):
def __init__(self,name,hero_type):
super(Player, self).__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