[战斗]=======================添加主角连击逻辑
parent
600f270128
commit
bb1ea1c7f8
|
@ -242,6 +242,7 @@ RoleDataName = {
|
|||
InitRage = indexAdd(), --初始怒气值
|
||||
KongBonus = indexAdd(), --时空系伤害加成
|
||||
KongReduce = indexAdd(), --时空系伤害减免
|
||||
PlayerAddSkill = indexAdd(),--主角连击
|
||||
}
|
||||
|
||||
-- 战斗表属性id对应战斗中属性数据
|
||||
|
|
|
@ -46,6 +46,22 @@ function this.AddMonsterSkill(skill)
|
|||
"pos", skill.owner.position,
|
||||
"type", BattleSkillType.Monster
|
||||
)
|
||||
--判断主角连击属性
|
||||
local addPro=skill.owner:GetRoleData(RoleDataName.Speed)
|
||||
if skill.owner.position==100 then
|
||||
BattleUtil.RandomAction(addPro,function()
|
||||
if skill.type == BattleSkillType.Monster then
|
||||
local addSkill=skill
|
||||
table.insert(this.MonsterSkillList, addSkill)
|
||||
BattleLogManager.Log(
|
||||
"Add Monster continue Skill",
|
||||
"camp", skill.owner.camp,
|
||||
"pos", skill.owner.position,
|
||||
"type", BattleSkillType.Monster
|
||||
)
|
||||
end
|
||||
end)
|
||||
end
|
||||
return skill
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue