From 5a164c77cf3accdab6f7515d2d1afee4b3c4455f Mon Sep 17 00:00:00 2001 From: chenxi Date: Mon, 17 Apr 2023 16:27:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=B8=80=E4=B8=8B=E6=8A=80=E8=83=BD?= =?UTF-8?q?=E5=90=8D=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/module/battle/battle_const.lua | 6 +++--- .../battle/controller/battle_controller.lua | 21 ++++++++++--------- .../battle/skill/battle_skill_entity.lua | 4 ++-- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/lua/app/module/battle/battle_const.lua b/lua/app/module/battle/battle_const.lua index 89798038..dcb6a173 100644 --- a/lua/app/module/battle/battle_const.lua +++ b/lua/app/module/battle/battle_const.lua @@ -91,10 +91,10 @@ BattleConst.MATCH_WEAKNESS_NAME = { BattleConst.SPINE_ANIMATION_NAME = { IDLE = "idle", - ATTACK = "atk1", + ATTACK = "attack01", MOVE = "move", - HIT = "hit", - DEAD = "die", + HIT = "suffer", + DEAD = "death", } BattleConst.EFFECT_TYPE = { diff --git a/lua/app/module/battle/controller/battle_controller.lua b/lua/app/module/battle/controller/battle_controller.lua index 8b7375cf..d1bad082 100644 --- a/lua/app/module/battle/controller/battle_controller.lua +++ b/lua/app/module/battle/controller/battle_controller.lua @@ -694,21 +694,22 @@ function BattleController:generateInstructions(skillEntity, elementType, influen end end - ---- 普攻 - if elementTypeCount > 0 then - table.insert(self.instructions, { - name = BattleConst.INSTRUCTION_NAME.GENERAL_ATTACK, - count = elementTypeCount, - skillMatch = elementType - }) - end - ---- 技能 if skillEntity then table.insert(self.instructions, { name = BattleConst.INSTRUCTION_NAME.PLAY_SKILL, - skillMatch = elementType + skillMatch = elementType, + count = elementTypeCount, }) + else + ---- 普攻 + if elementTypeCount > 0 then + table.insert(self.instructions, { + name = BattleConst.INSTRUCTION_NAME.GENERAL_ATTACK, + skillMatch = elementType, + count = elementTypeCount, + }) + end end end diff --git a/lua/app/userdata/battle/skill/battle_skill_entity.lua b/lua/app/userdata/battle/skill/battle_skill_entity.lua index d39bb444..6ef2af7a 100644 --- a/lua/app/userdata/battle/skill/battle_skill_entity.lua +++ b/lua/app/userdata/battle/skill/battle_skill_entity.lua @@ -31,7 +31,7 @@ end function BattleSkillEntity:getRandomNormalAttackName() if self.normalSkillNameList == nil then - self.normalSkillNameList = {"atk1", "atk2", "atk3"} + self.normalSkillNameList = {"attack01", "attack02", "attack03"} end if self.normalSkillNameIndex == nil then self.normalSkillNameIndex = math.random(1, #self.normalSkillNameList) @@ -46,7 +46,7 @@ end function BattleSkillEntity:getSkillAttackName() -- return self.skillInfo.name_act - return "atk1" + return "attack01" end function BattleSkillEntity:getEffectList()