【LOG】删除无用log,添加凤凰技能概率log

dev_chengFeng
gaoxin 2020-11-02 16:53:26 +08:00
parent ad4ebc14a0
commit 25f88a2a98
2 changed files with 4 additions and 3 deletions

View File

@ -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,

View File

@ -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