From ac57fc89d4fb7a8067c8d76b1a11bd1a86639047 Mon Sep 17 00:00:00 2001 From: chenyueqi Date: Tue, 16 Mar 2021 10:22:30 +0800 Subject: [PATCH] 贸易季兑换商店记录次数 --- src/actions/SeaportAction.lua | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) 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