Commit d284e3ee791c2223f751e469f60fdc5d2dcc3d8c

Authored by zhouhaihai
1 parent a289c34c

商店扣除错误

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/actions/StoreAction.lua
@@ -228,7 +228,7 @@ function _M.dinerBuyRpc(agent , data) @@ -228,7 +228,7 @@ function _M.dinerBuyRpc(agent , data)
228 local dinerS = role:getProperty("dinerS") 228 local dinerS = role:getProperty("dinerS")
229 if math.illegalNum(count, 1, (dataSet.limit == 0 and math.huge or dataSet.limit - (dinerS[id] or 0))) then return 1 end 229 if math.illegalNum(count, 1, (dataSet.limit == 0 and math.huge or dataSet.limit - (dinerS[id] or 0))) then return 1 end
230 230
231 - local cost = {[ItemId.DinerCoin] = dataSet.cost} 231 + local cost = {[ItemId.DinerCoin] = dataSet.cost * count}
232 if not role:checkItemEnough(cost) then return end 232 if not role:checkItemEnough(cost) then return end
233 233
234 if dataSet.limit ~= 0 then 234 if dataSet.limit ~= 0 then