Commit 63c0245e2b76f6732aebd695ff57f8219ce65405
1 parent
c242dda6
fix: 跨天资源值未重置的bug
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
src/models/Daily.lua
@@ -68,6 +68,8 @@ function Daily:refreshDailyData(notify) | @@ -68,6 +68,8 @@ function Daily:refreshDailyData(notify) | ||
68 | end | 68 | end |
69 | elseif field == "id" then | 69 | elseif field == "id" then |
70 | -- skip | 70 | -- skip |
71 | + elseif field == "treasureBase" then | ||
72 | + dataMap[field] = globalCsv.idle_treasure_base | ||
71 | elseif field == "treasureList" then | 73 | elseif field == "treasureList" then |
72 | dataMap[field] = self:getTreasrueList() | 74 | dataMap[field] = self:getTreasrueList() |
73 | elseif field == "pvpBought" then | 75 | elseif field == "pvpBought" then |
@@ -405,6 +407,7 @@ function Daily:data() | @@ -405,6 +407,7 @@ function Daily:data() | ||
405 | goldBuyT = self:getProperty("goldBuyT"), | 407 | goldBuyT = self:getProperty("goldBuyT"), |
406 | unlockPool = self:getProperty("unlockPool"), | 408 | unlockPool = self:getProperty("unlockPool"), |
407 | curPool = self:getProperty("curPool"), | 409 | curPool = self:getProperty("curPool"), |
410 | + treasureBase = self:getProperty("treasureBase"), | ||
408 | treasureList = self:getProperty("treasureList"), | 411 | treasureList = self:getProperty("treasureList"), |
409 | } | 412 | } |
410 | end | 413 | end |