Commit a5a4648334e739e88826ef1ccb5c98d8be563cca
1 parent
652ef8f7
fix: 一番赏 修复消耗票兑换 不增加消耗票的bug
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
src/actions/CapsuleAction.lua
... | ... | @@ -187,7 +187,8 @@ function _M.convertCapsuleRpc(agent, data) |
187 | 187 | if not role:checkItemEnough(cost) then return 1 end |
188 | 188 | role:costItems(cost, {log = {desc = "CapsuleConvert", int1 = convert[1], int2 = cost[convert[1]]}}) |
189 | 189 | |
190 | - local reward, change = role:award({coin = count}, {log = {desc = "CapsuleConvert"}}) | |
190 | + | |
191 | + local reward, change = role:award({[coin]= count}, {log = {desc = "CapsuleConvert"}}) | |
191 | 192 | SendPacket(actionCodes.Capsule_convertCapsuleRpc, MsgPack.pack(role:packReward(reward, change))) |
192 | 193 | return true |
193 | 194 | end | ... | ... |
src/models/RoleCross.lua