Commit eb1d28df19c965c7f6713c8d6f6917d90b361d4c

Authored by liguanghui
1 parent 77770cb6

bug修复:夜间打工发奖数量有误

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/actions/HangAction.lua
... ... @@ -763,7 +763,7 @@ local function workWinReward(role, bonusData, rewardType, count, sweep)
763 763  
764 764 reward = bonusData.reward:toNumMap()
765 765 for itemId, c in pairs(reward) do
766   - reward[itemId] = c * count
  766 + reward[itemId] = (reward[itemId] or 0) + c * count
767 767 end
768 768 for i = 1, count do
769 769 local chance = bonusData.chance:randWeight(true)
... ...