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