Commit 0f811b9b6de0519f4b075a218dc90c422bd09cf7
Merge branch 'cn/develop' into cn/publish/release
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
src/actions/StoreAction.lua
@@ -291,6 +291,7 @@ function _M.shopBuyRpc(agent , data) | @@ -291,6 +291,7 @@ function _M.shopBuyRpc(agent , data) | ||
291 | return 1 | 291 | return 1 |
292 | end | 292 | end |
293 | 293 | ||
294 | + if dataSet.disount == 0 then dataSet.disount = 10 end | ||
294 | local cost = {[dataSet.icon] = math.ceil(dataSet.cost * count * ((dataSet.disount or 10) / 10))} | 295 | local cost = {[dataSet.icon] = math.ceil(dataSet.cost * count * ((dataSet.disount or 10) / 10))} |
295 | 296 | ||
296 | 297 |