Commit ac57fc89d4fb7a8067c8d76b1a11bd1a86639047
1 parent
1dc5abc2
贸易季兑换商店记录次数
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
src/actions/SeaportAction.lua
@@ -257,6 +257,9 @@ function _M.shopRpc(agent, data) | @@ -257,6 +257,9 @@ function _M.shopRpc(agent, data) | ||
257 | 257 | ||
258 | local reward, change = role:award(itemReward, {log = {desc = "seaportShop", int1 = id, int2 = count}}) | 258 | local reward, change = role:award(itemReward, {log = {desc = "seaportShop", int1 = id, int2 = count}}) |
259 | 259 | ||
260 | + shop[id] = (shop[id] or 0) + count | ||
261 | + seaport.shop = shop | ||
262 | + | ||
260 | role:updateProperty({field = "seaport", value = seaport}) | 263 | role:updateProperty({field = "seaport", value = seaport}) |
261 | 264 | ||
262 | SendPacket(actionCodes.Seaport_shopRpc, MsgPack.pack(role:packReward(reward, change))) | 265 | SendPacket(actionCodes.Seaport_shopRpc, MsgPack.pack(role:packReward(reward, change))) |