【战斗】添加一些战斗日志
parent
c67c9fb93b
commit
93413b3b07
|
@ -2247,6 +2247,15 @@ local passivityList = {
|
||||||
local i1 = args[4]
|
local i1 = args[4]
|
||||||
-- 释放技能后
|
-- 释放技能后
|
||||||
local onSkillEnd = function(skill)
|
local onSkillEnd = function(skill)
|
||||||
|
BattleLogManager.Log(
|
||||||
|
"Passive 119",
|
||||||
|
"camp", role.camp,
|
||||||
|
"pos", role.position,
|
||||||
|
"isSkill", tostring(skill ~= nil),
|
||||||
|
"isTriggerJudge", tostring(skill.isTriggerJudge),
|
||||||
|
"type", tostring(skill.type),
|
||||||
|
"judge", tostring(judge)
|
||||||
|
)
|
||||||
if skill and not skill.isTriggerJudge and judge==1 then
|
if skill and not skill.isTriggerJudge and judge==1 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
@ -424,15 +424,6 @@ function RoleLogic:AddSkill(type, isRage, isAdd, targets)
|
||||||
end
|
end
|
||||||
SkillManager.AddSkill(self, effectData, type, targets, isAdd, isRage,isTriggerJudge)
|
SkillManager.AddSkill(self, effectData, type, targets, isAdd, isRage,isTriggerJudge)
|
||||||
--
|
--
|
||||||
BattleLogManager.Log(
|
|
||||||
"Add Skill",
|
|
||||||
"camp", self.camp,
|
|
||||||
"pos", self.position,
|
|
||||||
"type", type,
|
|
||||||
"isRage", tostring(isRage),
|
|
||||||
"isAdd", tostring(isAdd),
|
|
||||||
"targets", targets and #targets or "0"
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--加入额外技能,用于额外释放技能 by:王振兴
|
--加入额外技能,用于额外释放技能 by:王振兴
|
||||||
|
@ -450,15 +441,6 @@ function RoleLogic:InsertExtraSkill(id,type)
|
||||||
end
|
end
|
||||||
--和老史,佳琦确认果 附加技能算绝技 被沉默无法释放 可以套娃 递归触发 by:王振兴
|
--和老史,佳琦确认果 附加技能算绝技 被沉默无法释放 可以套娃 递归触发 by:王振兴
|
||||||
SkillManager.InsertSkill(self, effectData, skillType, nil, true, false,isTrigger)
|
SkillManager.InsertSkill(self, effectData, skillType, nil, true, false,isTrigger)
|
||||||
BattleLogManager.Log(
|
|
||||||
"Insert Extra Skill",
|
|
||||||
"camp", self.camp,
|
|
||||||
"pos", self.position,
|
|
||||||
"type", skillType,
|
|
||||||
"isRage", tostring(false),
|
|
||||||
"isAdd", tostring(true),
|
|
||||||
"targets", targets and #targets or "0"
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -468,16 +450,6 @@ function RoleLogic:InsertSkill(type, isRage, isAdd, targets)
|
||||||
if not self.IsCanAddSkill and isAdd then return end
|
if not self.IsCanAddSkill and isAdd then return end
|
||||||
local effectData = type == BattleSkillType.Normal and self.skill or self.superSkill
|
local effectData = type == BattleSkillType.Normal and self.skill or self.superSkill
|
||||||
SkillManager.InsertSkill(self, effectData, type, targets, isAdd, isRage)
|
SkillManager.InsertSkill(self, effectData, type, targets, isAdd, isRage)
|
||||||
--
|
|
||||||
BattleLogManager.Log(
|
|
||||||
"Insert Skill",
|
|
||||||
"camp", self.camp,
|
|
||||||
"pos", self.position,
|
|
||||||
"type", type,
|
|
||||||
"isRage", tostring(isRage),
|
|
||||||
"isAdd", tostring(isAdd),
|
|
||||||
"targets", targets and #targets or "0"
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
-- 设置是否可以追加技能
|
-- 设置是否可以追加技能
|
||||||
function RoleLogic:SetIsCanAddSkill(isCan)
|
function RoleLogic:SetIsCanAddSkill(isCan)
|
||||||
|
|
|
@ -49,6 +49,16 @@ function this.AddSkill(caster, effectData, type, targets, isAdd, isRage,isTrigge
|
||||||
if not this.CheckMaxCount() then
|
if not this.CheckMaxCount() then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
BattleLogManager.Log(
|
||||||
|
"Add Skill",
|
||||||
|
"camp", caster.camp,
|
||||||
|
"pos", caster.position,
|
||||||
|
"type", type,
|
||||||
|
"isRage", tostring(isRage),
|
||||||
|
"isAdd", tostring(isAdd),
|
||||||
|
"isTriggerJudge", tostring(isTriggerJudge),
|
||||||
|
"targets", targets and #targets or "0"
|
||||||
|
)
|
||||||
local skill = skillPool:Get()
|
local skill = skillPool:Get()
|
||||||
skill:Init(caster, effectData, type, targets, isAdd, isRage,isTriggerJudge)
|
skill:Init(caster, effectData, type, targets, isAdd, isRage,isTriggerJudge)
|
||||||
if type == BattleSkillType.DeadSkill then -- 死亡技能加入单独的对列
|
if type == BattleSkillType.DeadSkill then -- 死亡技能加入单独的对列
|
||||||
|
@ -64,6 +74,18 @@ function this.InsertSkill(caster, effectData, type, targets, isAdd, isRage,isTri
|
||||||
if not this.CheckMaxCount() then
|
if not this.CheckMaxCount() then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
BattleLogManager.Log(
|
||||||
|
"Insert Skill",
|
||||||
|
"camp", caster.camp,
|
||||||
|
"pos", caster.position,
|
||||||
|
"type", type,
|
||||||
|
"isRage", tostring(isRage),
|
||||||
|
"isAdd", tostring(isAdd),
|
||||||
|
"isTriggerJudge", tostring(isTriggerJudge),
|
||||||
|
"isLoop", tostring(isLoop),
|
||||||
|
"targets", targets and #targets or "0"
|
||||||
|
)
|
||||||
|
|
||||||
local skill = skillPool:Get()
|
local skill = skillPool:Get()
|
||||||
|
|
||||||
--角色被混乱后
|
--角色被混乱后
|
||||||
|
|
Loading…
Reference in New Issue