From 63c0245e2b76f6732aebd695ff57f8219ce65405 Mon Sep 17 00:00:00 2001 From: zqj <582132116@qq.com> Date: Fri, 14 May 2021 18:02:17 +0800 Subject: [PATCH] fix: 跨天资源值未重置的bug --- src/models/Daily.lua | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/src/models/Daily.lua b/src/models/Daily.lua index 39b2f46..0808860 100644 --- a/src/models/Daily.lua +++ b/src/models/Daily.lua @@ -68,6 +68,8 @@ function Daily:refreshDailyData(notify) end elseif field == "id" then -- skip + elseif field == "treasureBase" then + dataMap[field] = globalCsv.idle_treasure_base elseif field == "treasureList" then dataMap[field] = self:getTreasrueList() elseif field == "pvpBought" then @@ -405,6 +407,7 @@ function Daily:data() goldBuyT = self:getProperty("goldBuyT"), unlockPool = self:getProperty("unlockPool"), curPool = self:getProperty("curPool"), + treasureBase = self:getProperty("treasureBase"), treasureList = self:getProperty("treasureList"), } end -- libgit2 0.21.2