Commit 5a8b7a3397912800c53a6a182f85dfef83fc4511

Authored by zhouhaihai
1 parent af2870d8

拾荒随机 错误

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/adv/Adv.lua
... ... @@ -1587,7 +1587,7 @@ local function doChooseEffect(self, effectStr, room, block, tag, chooseData)
1587 1587 for _, v in ipairs(diceCsv) do
1588 1588 local status, okCount = checkChooseCondFunc(self, v.cond, room, block, tag .. " dice", chooseData)
1589 1589 pool[#pool + 1] = v.weight + okCount * v.weightUp
1590   - sum = sum + pool[#pool + 1]
  1590 + sum = sum + pool[#pool]
1591 1591 if sum >= weight and not needEffect then
1592 1592 -- 达成效果
1593 1593 needEffect = v.effect
... ...