Commit e7ba6e0418eb1ba1fc8aead3f4f6f84772ef0ed0
1 parent
dd328bd6
fix: 赞誉度增幅 餐厅收益计算问题
level_addition中的效果值6=0计算顺序有误,应该为单份料理的价格提升,实际为单种料理的价格提升 当卖50份的时候,单价为200,提升价格到250 应该获得50乘以250的收益 现在为(200乘以50)+50的收益
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/models/Diner.lua
@@ -232,7 +232,7 @@ function Diner:calSellReward(sell, delta, dishData, isExpedite) | @@ -232,7 +232,7 @@ function Diner:calSellReward(sell, delta, dishData, isExpedite) | ||
232 | upValue[-1] = (upValue[-1] or 0) + collectAdd | 232 | upValue[-1] = (upValue[-1] or 0) + collectAdd |
233 | 233 | ||
234 | -- 电波塔加成 | 234 | -- 电波塔加成 |
235 | - local goldCount = self.owner:getBnousDiner(4,addReward[ItemId.Gold]) | 235 | + local goldCount = (self.owner:getBnousDiner(4,addReward[ItemId.Gold])) * delta |
236 | 236 | ||
237 | for id, count in pairs(addReward) do | 237 | for id, count in pairs(addReward) do |
238 | addReward[id] = math.floor(count * (1 + (upValue[id] or 0) / 100)) | 238 | addReward[id] = math.floor(count * (1 + (upValue[id] or 0) / 100)) |