From 73d683e698664028bf5af04e4e5275fe8cc49070 Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Wed, 20 Jan 2021 20:48:50 +0800 Subject: [PATCH] 新增倍数 --- src/adv/AdvPassive.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/adv/AdvPassive.lua b/src/adv/AdvPassive.lua index f6cd8c1..1436efe 100644 --- a/src/adv/AdvPassive.lua +++ b/src/adv/AdvPassive.lua @@ -532,7 +532,7 @@ function Passive:effect8(dropId) end --9=直接获得item(可在结算触发时使用) -function Passive:effect9(itemId, triggerPms, ratio, max) +function Passive:effect9(itemId, triggerPms, ratio, ratio2, max) local cond = nil if self.passiveData.value == 0 then cond = triggerPms.score @@ -542,7 +542,7 @@ function Passive:effect9(itemId, triggerPms, ratio, max) return end if not cond then return end - self.owner.battle.adv:award({[itemId] = math.floor(math.max(0, math.min(max, cond / ratio)))}, {log = {desc = "passive", int1 = self.id}}, {roomId = self.owner.roomId, blockId = self.owner.blockId}) + self.owner.battle.adv:award({[itemId] = math.floor(math.max(0, math.min(max, cond / ratio * ratio2)))}, {log = {desc = "passive", int1 = self.id}}, {roomId = self.owner.roomId, blockId = self.owner.blockId}) end --10=战斗额外掉落次数 -- libgit2 0.21.2