diff --git a/src/actions/TowerAction.lua b/src/actions/TowerAction.lua index 9bf448c..4bace46 100644 --- a/src/actions/TowerAction.lua +++ b/src/actions/TowerAction.lua @@ -47,7 +47,7 @@ function _M.startBattleRpc(agent, data) local towerInfo = role:getProperty("towerInfo") - if towerInfo.l ~= id then return end -- 层数不对 + if (towerInfo.l or 1) ~= id then return end -- 层数不对 if not csvdb["tower_battleCsv"][id] then return end local curCount, nextTime = getUpdateTime(towerInfo.c, towerInfo.t) diff --git a/src/models/Role.lua b/src/models/Role.lua index c1bc8f7..d8ee453 100644 --- a/src/models/Role.lua +++ b/src/models/Role.lua @@ -61,7 +61,7 @@ Role.schema = { boxL = {"table", {}}, -- boxList 正开启的箱子 -- {[1] = {id = 1010, gem = 101, time = 1313}} - towerInfo = {"table", {c = globalCsv.tower_count_limit}}, -- 当天爬塔消耗的次数 -- {t = time, c = count, l = layer, k = battleKey} + towerInfo = {"table", {c = globalCsv.tower_count_limit, l = 1}}, -- 当天爬塔消耗的次数 -- {t = time, c = count, l = layer, k = battleKey} towerF = {"table", {}}, -- 爬塔阵容 } -- libgit2 0.21.2