From d284e3ee791c2223f751e469f60fdc5d2dcc3d8c Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Tue, 23 Jun 2020 10:06:15 +0800 Subject: [PATCH] 商店扣除错误 --- src/actions/StoreAction.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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