diff --git a/src/actions/StoreAction.lua b/src/actions/StoreAction.lua index 62a98c8..4aef5e9 100644 --- a/src/actions/StoreAction.lua +++ b/src/actions/StoreAction.lua @@ -228,7 +228,7 @@ function _M.dinerBuyRpc(agent , data) local dinerS = role:getProperty("dinerS") if math.illegalNum(count, 1, (dataSet.limit == 0 and math.huge or dataSet.limit - (dinerS[id] or 0))) then return 1 end - local cost = {[ItemId.DinerCoin] = dataSet.cost} + local cost = {[ItemId.DinerCoin] = dataSet.cost * count} if not role:checkItemEnough(cost) then return end if dataSet.limit ~= 0 then -- libgit2 0.21.2