diff --git a/src/actions/CapsuleAction.lua b/src/actions/CapsuleAction.lua index c40b93f..4ca9183 100644 --- a/src/actions/CapsuleAction.lua +++ b/src/actions/CapsuleAction.lua @@ -187,7 +187,8 @@ function _M.convertCapsuleRpc(agent, data) if not role:checkItemEnough(cost) then return 1 end role:costItems(cost, {log = {desc = "CapsuleConvert", int1 = convert[1], int2 = cost[convert[1]]}}) - local reward, change = role:award({coin = count}, {log = {desc = "CapsuleConvert"}}) + + local reward, change = role:award({[coin]= count}, {log = {desc = "CapsuleConvert"}}) SendPacket(actionCodes.Capsule_convertCapsuleRpc, MsgPack.pack(role:packReward(reward, change))) return true end diff --git a/src/models/RoleCross.lua b/src/models/RoleCross.lua index f304e3a..f72acf8 100644 --- a/src/models/RoleCross.lua +++ b/src/models/RoleCross.lua @@ -385,7 +385,6 @@ function CMD.redPTag(roleId, tag, pms) end function CMD.paySpecialReward(roleId, notify) - dump(notify) if notify and next(notify) then local reward = {} for key, val in pairs(notify) do -- libgit2 0.21.2