Commit 27dd1a36a3f07e286778c335bdd01e9b57a93583
1 parent
761b3ea8
电波塔分塔开放条件读表
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
src/actions/TowerAction.lua
... | ... | @@ -31,9 +31,9 @@ function _M.startBattleRpc(agent, data) |
31 | 31 | local towerInfo = role:getProperty("towerInfo") |
32 | 32 | |
33 | 33 | if towerType == 0 and (towerInfo.l or 1) ~= id then return 2 end -- 层数不对 |
34 | - if towerType == 1 and ((towerInfo.l1 or 10001) ~= id or (towerInfo.l or 1) < 10) then return 2 end -- 层数不对 | |
35 | - if towerType == 2 and ((towerInfo.l2 or 20001) ~= id or (towerInfo.l or 1) < 10) then return 2 end -- 层数不对 | |
36 | - if towerType == 3 and ((towerInfo.l3 or 30001) ~= id or (towerInfo.l or 1) < 10) then return 2 end -- 层数不对 | |
34 | + if towerType == 1 and ((towerInfo.l1 or 10001) ~= id or (towerInfo.l or 1) <= globalCsv.tower_open[towerType]) then return 2 end -- 层数不对 | |
35 | + if towerType == 2 and ((towerInfo.l2 or 20001) ~= id or (towerInfo.l or 1) <= globalCsv.tower_open[towerType]) then return 2 end -- 层数不对 | |
36 | + if towerType == 3 and ((towerInfo.l3 or 30001) ~= id or (towerInfo.l or 1) <= globalCsv.tower_open[towerType]) then return 2 end -- 层数不对 | |
37 | 37 | |
38 | 38 | if not csvdb["tower_battleCsv"][id] then return 4 end |
39 | 39 | ... | ... |