Commit d481965d8fa9a3764168ccb8b4783960915f12dc

Authored by zhouhaihai
1 parent 25cebbc5

购买次数bug

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/actions/HangAction.lua
@@ -399,8 +399,8 @@ function _M.buyBonusCountRpc(agent, data) @@ -399,8 +399,8 @@ function _M.buyBonusCountRpc(agent, data)
399 if not role:checkItemEnough({[ItemId.Diamond] = globalCsv.bonus_buy_cost * count}) then return end 399 if not role:checkItemEnough({[ItemId.Diamond] = globalCsv.bonus_buy_cost * count}) then return end
400 400
401 role:costItems({[ItemId.Diamond] = globalCsv.bonus_buy_cost * count}) 401 role:costItems({[ItemId.Diamond] = globalCsv.bonus_buy_cost * count})
402 - bonusC[btype]["b"] = bonusC[btype]["b"] + 1  
403 - bonusC[btype]["c"] = bonusC[btype]["c"] - 1 402 + bonusC[btype]["b"] = bonusC[btype]["b"] + count
  403 + bonusC[btype]["c"] = bonusC[btype]["c"] - count
404 404
405 role.dailyData:updateProperty({field = "bonusC", value = bonusC}) 405 role.dailyData:updateProperty({field = "bonusC", value = bonusC})
406 406