From 25f88a2a98500a673909f4ad64f7e9022eeefd92 Mon Sep 17 00:00:00 2001 From: gaoxin Date: Mon, 2 Nov 2020 16:53:26 +0800 Subject: [PATCH] =?UTF-8?q?=20=E3=80=90LOG=E3=80=91=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=97=A0=E7=94=A8log=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=87=A4?= =?UTF-8?q?=E5=87=B0=E6=8A=80=E8=83=BD=E6=A6=82=E7=8E=87log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/Battle/Logic/Monster/MonsterSkill/MCondition.lua | 4 ++++ .../ManagedResources/~Lua/Modules/Battle/View/BattleView.lua | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Monster/MonsterSkill/MCondition.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Monster/MonsterSkill/MCondition.lua index 2ddc8b26b1..74db9aac51 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Monster/MonsterSkill/MCondition.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Monster/MonsterSkill/MCondition.lua @@ -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, diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/BattleView.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/BattleView.lua index 762e347499..b75b99557b 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/BattleView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/BattleView.lua @@ -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