Commit 48f74ad9 by BellCodeEditor

save project

parent 0f4dbc73
Showing with 2 additions and 2 deletions
......@@ -3,7 +3,7 @@ class Hero(object):
def __init__(self, name):
self.name = name
self.level = 1
self.hp = 250
self.hp = 260
self.attack = 40
self.max_hp = self.hp
......@@ -38,7 +38,7 @@ class Player(Hero):
print("当前等级、血量、攻击力分别为:",self.level,self.hp,self.attack)
def cure(self): # 治疗
asd=random.randint(30,50)
asd=random.randint(30,60)
self.hp=self.hp+asd
if self.hp>self.max_hp:
self.hp=self.max_hp
......
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