Commit 73d683e698664028bf5af04e4e5275fe8cc49070
1 parent
47c6253a
新增倍数
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/adv/AdvPassive.lua
| ... | ... | @@ -532,7 +532,7 @@ function Passive:effect8(dropId) |
| 532 | 532 | end |
| 533 | 533 | |
| 534 | 534 | --9=直接获得item(可在结算触发时使用) |
| 535 | -function Passive:effect9(itemId, triggerPms, ratio, max) | |
| 535 | +function Passive:effect9(itemId, triggerPms, ratio, ratio2, max) | |
| 536 | 536 | local cond = nil |
| 537 | 537 | if self.passiveData.value == 0 then |
| 538 | 538 | cond = triggerPms.score |
| ... | ... | @@ -542,7 +542,7 @@ function Passive:effect9(itemId, triggerPms, ratio, max) |
| 542 | 542 | return |
| 543 | 543 | end |
| 544 | 544 | if not cond then return end |
| 545 | - 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}) | |
| 545 | + 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}) | |
| 546 | 546 | end |
| 547 | 547 | |
| 548 | 548 | --10=战斗额外掉落次数 | ... | ... |