This commit is contained in:
xiekaidong 2023-04-17 16:41:20 +08:00
commit 9a79b24470
3 changed files with 16 additions and 15 deletions

View File

@ -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 = {

View File

@ -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

View File

@ -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()