Commit f854f3a30fb5721a2886999d0ad6e0cb1e860eac

Authored by chenyueqi
1 parent ff805127

电波塔对贩卖食材的金币加成计算错误

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/models/Diner.lua
@@ -238,7 +238,7 @@ function Diner:calSellReward(sell, delta, dishData, isExpedite) @@ -238,7 +238,7 @@ function Diner:calSellReward(sell, delta, dishData, isExpedite)
238 reward = reward:incrv(id, addReward[id]) 238 reward = reward:incrv(id, addReward[id])
239 end 239 end
240 240
241 - addReward[ItemId.Gold] = (addReward[ItemId.Gold] or 0) + goldCount 241 + reward = reward:incrv(ItemId.Gold, goldCount)
242 242
243 popular = math.floor(popular * (1 + (upValue[-1] or 0) / 100)) 243 popular = math.floor(popular * (1 + (upValue[-1] or 0) / 100))
244 244