Commit ea35763660ea21ed3b2c72df9fbdd6b5041dc589
1 parent
81a00cac
爬塔初始层数
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
src/actions/TowerAction.lua
| ... | ... | @@ -47,7 +47,7 @@ function _M.startBattleRpc(agent, data) |
| 47 | 47 | |
| 48 | 48 | local towerInfo = role:getProperty("towerInfo") |
| 49 | 49 | |
| 50 | - if towerInfo.l ~= id then return end -- 层数不对 | |
| 50 | + if (towerInfo.l or 1) ~= id then return end -- 层数不对 | |
| 51 | 51 | |
| 52 | 52 | if not csvdb["tower_battleCsv"][id] then return end |
| 53 | 53 | local curCount, nextTime = getUpdateTime(towerInfo.c, towerInfo.t) | ... | ... |
src/models/Role.lua
| ... | ... | @@ -61,7 +61,7 @@ Role.schema = { |
| 61 | 61 | |
| 62 | 62 | boxL = {"table", {}}, -- boxList 正开启的箱子 -- {[1] = {id = 1010, gem = 101, time = 1313}} |
| 63 | 63 | |
| 64 | - towerInfo = {"table", {c = globalCsv.tower_count_limit}}, -- 当天爬塔消耗的次数 -- {t = time, c = count, l = layer, k = battleKey} | |
| 64 | + towerInfo = {"table", {c = globalCsv.tower_count_limit, l = 1}}, -- 当天爬塔消耗的次数 -- {t = time, c = count, l = layer, k = battleKey} | |
| 65 | 65 | towerF = {"table", {}}, -- 爬塔阵容 |
| 66 | 66 | } |
| 67 | 67 | ... | ... |