Commit 75d57e8f by BellCodeEditor

save project

parent 81c4469c
Showing with 2 additions and 2 deletions
......@@ -22,7 +22,7 @@ class Hero():
exit()
def cure(self):
self.hp = self.hp+60
blood = random.randint(,3)
if self.hp>self.max_hp:
self.hp=self.max_hp
print(self.name+"使用来治疗,血量增加:",60,"self.hp")
......@@ -37,7 +37,7 @@ class Player(Hero): # 玩家英雄
print("当前等级、血量、攻击力分别为:",self.level,self.hp,self.attack)
houyi = Player("后羿","射手")
yase = Hero("亚瑟")
yase = Hero("亚瑟"
print(30*'-')
print(' 战斗开始')
while True:
......
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