Commit 23b43031 by BellCodeEditor

save project

parent 0b8ebbaf
Showing with 8 additions and 2 deletions
...@@ -34,4 +34,10 @@ class Player(Hero): # 玩家英雄 ...@@ -34,4 +34,10 @@ class Player(Hero): # 玩家英雄
self.max_hp = self.hp self.max_hp = self.hp
print('角色'+self.name+'创建成功,英雄类型为:'+hero_type) print('角色'+self.name+'创建成功,英雄类型为:'+hero_type)
print('当前角色的属性值:等级、血量、攻击力分别为:',self.level,self.hp,self.attack) print('当前角色的属性值:等级、血量、攻击力分别为:',self.level,self.hp,self.attack)
player = Player('后羿','射手') houyi = Player('后羿','射手')
\ No newline at end of file yase = Hero('亚瑟')
print('-'*30)
print(' 战斗开始')
while True:
print('-'*30)
choice=str(input('请选择释放英雄技能(1攻击/2治疗)'))
\ No newline at end of file
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