Commit ea39db4e by BellCodeEditor

auto save

parent 07aba7cc
Showing with 1 additions and 3 deletions
......@@ -5,9 +5,7 @@ class Hero: # 英雄类
self.hp = 250
self.attack = 40
self.max_hp = self.hp
self.hero_type=hero_type
print("角色"+self.name+"创建成功,"+"英雄类别为:"+self.hero_type)
print("当前等级、血量、攻击力分别为:",str(self.level), str(self.hp),str(self.attack))
def combat(self, enemy): # 攻击功能
......
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