Commit 879b2204ae85d1af3e5c55bf4034f9daaa0623fc

Authored by zhangqijia
1 parent ff72d1eb

fix: 商店折扣后价格向上取整

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/actions/StoreAction.lua
... ... @@ -290,7 +290,7 @@ function _M.shopBuyRpc(agent , data)
290 290 return 1
291 291 end
292 292  
293   - local cost = {[dataSet.icon] = dataSet.cost * count * ((dataSet.disount or 10) / 10)}
  293 + local cost = {[dataSet.icon] = math.ceil(dataSet.cost * count * ((dataSet.disount or 10) / 10))}
294 294  
295 295  
296 296 local desc = "unknowShop"
... ...