改一下技能名字

This commit is contained in:
chenxi 2023-04-17 16:27:22 +08:00
parent 65f695030e
commit 5a164c77cf
3 changed files with 16 additions and 15 deletions

View File

@ -91,10 +91,10 @@ BattleConst.MATCH_WEAKNESS_NAME = {
BattleConst.SPINE_ANIMATION_NAME = { BattleConst.SPINE_ANIMATION_NAME = {
IDLE = "idle", IDLE = "idle",
ATTACK = "atk1", ATTACK = "attack01",
MOVE = "move", MOVE = "move",
HIT = "hit", HIT = "suffer",
DEAD = "die", DEAD = "death",
} }
BattleConst.EFFECT_TYPE = { BattleConst.EFFECT_TYPE = {

View File

@ -694,21 +694,22 @@ function BattleController:generateInstructions(skillEntity, elementType, influen
end end
end end
---- 普攻
if elementTypeCount > 0 then
table.insert(self.instructions, {
name = BattleConst.INSTRUCTION_NAME.GENERAL_ATTACK,
count = elementTypeCount,
skillMatch = elementType
})
end
---- 技能 ---- 技能
if skillEntity then if skillEntity then
table.insert(self.instructions, { table.insert(self.instructions, {
name = BattleConst.INSTRUCTION_NAME.PLAY_SKILL, 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
end end

View File

@ -31,7 +31,7 @@ end
function BattleSkillEntity:getRandomNormalAttackName() function BattleSkillEntity:getRandomNormalAttackName()
if self.normalSkillNameList == nil then if self.normalSkillNameList == nil then
self.normalSkillNameList = {"atk1", "atk2", "atk3"} self.normalSkillNameList = {"attack01", "attack02", "attack03"}
end end
if self.normalSkillNameIndex == nil then if self.normalSkillNameIndex == nil then
self.normalSkillNameIndex = math.random(1, #self.normalSkillNameList) self.normalSkillNameIndex = math.random(1, #self.normalSkillNameList)
@ -46,7 +46,7 @@ end
function BattleSkillEntity:getSkillAttackName() function BattleSkillEntity:getSkillAttackName()
-- return self.skillInfo.name_act -- return self.skillInfo.name_act
return "atk1" return "attack01"
end end
function BattleSkillEntity:getEffectList() function BattleSkillEntity:getEffectList()