diff --git a/src/actions/SeaportAction.lua b/src/actions/SeaportAction.lua index b41d344..6f518f2 100644 --- a/src/actions/SeaportAction.lua +++ b/src/actions/SeaportAction.lua @@ -257,6 +257,9 @@ function _M.shopRpc(agent, data) local reward, change = role:award(itemReward, {log = {desc = "seaportShop", int1 = id, int2 = count}}) + shop[id] = (shop[id] or 0) + count + seaport.shop = shop + role:updateProperty({field = "seaport", value = seaport}) SendPacket(actionCodes.Seaport_shopRpc, MsgPack.pack(role:packReward(reward, change))) -- libgit2 0.21.2