Commit fa394adf by BellCodeEditor

auto save

parent c28bab0c
Showing with 3 additions and 2 deletions
......@@ -35,6 +35,7 @@ class Player(Hero):
self.attack = 50
self.max_hp = self.hp
self.hero_type = hero_type
print("角色"+self.name+"创建成功,英雄类型为:", self.hero_type)
print("当前等级、血量、攻击力分别为:",self.level,self.hp,self.attack)
print('-'*30)
......@@ -61,8 +62,8 @@ while True:
else:
print('重输!')
continue
b=random.randint(1,3)
if b==3:
num=random.randint(1,3)
if num==1:
yase.cure()
else:
yase.combat(houyi)
......
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