diff --git a/src/actions/StoreAction.lua b/src/actions/StoreAction.lua index 64d1b04..102ae73 100644 --- a/src/actions/StoreAction.lua +++ b/src/actions/StoreAction.lua @@ -290,6 +290,7 @@ function _M.shopBuyRpc(agent , data) return 1 end + if dataSet.disount == 0 then dataSet.disount = 10 end local cost = {[dataSet.icon] = math.ceil(dataSet.cost * count * ((dataSet.disount or 10) / 10))} -- libgit2 0.21.2