【LOG】删除无用log,添加凤凰技能概率log
parent
ad4ebc14a0
commit
25f88a2a98
|
@ -43,6 +43,10 @@ local _ConditionConfig = {
|
|||
-- 判断概率
|
||||
local r = Random.Range01()
|
||||
local isRandomOk = r <= rand/10000
|
||||
|
||||
LogPink("凤凰技能随机数")
|
||||
LogPink("释放概率:"..rand/10000)
|
||||
LogPink("当前概率:"..r)
|
||||
return isRoundOk and isRandomOk
|
||||
end,
|
||||
|
||||
|
|
|
@ -672,12 +672,10 @@ function this.SetRoleHighLight(caster, targets, func)
|
|||
max = max + 1
|
||||
role:SetHighLight(false, 0.95, 0.2, _Count)
|
||||
end
|
||||
LogPink("max1 = "..max)
|
||||
if caster and caster.role.type == BattleUnitType.Role then
|
||||
max = max - 1
|
||||
caster:SetHighLight(true, 1.5, 0.2)
|
||||
end
|
||||
LogPink("max2 = "..max)
|
||||
if targets then
|
||||
for _, data in ipairs(targets) do
|
||||
if caster ~= tbRole[data] then
|
||||
|
@ -686,7 +684,6 @@ function this.SetRoleHighLight(caster, targets, func)
|
|||
end
|
||||
end
|
||||
end
|
||||
LogPink("max3 = "..max)
|
||||
if max == 0 then
|
||||
if func then func() end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue