diff --git a/src/actions/AdvAction.lua b/src/actions/AdvAction.lua index 332808d..7045db8 100644 --- a/src/actions/AdvAction.lua +++ b/src/actions/AdvAction.lua @@ -134,7 +134,7 @@ function _M.startAdvRpc( agent, data ) else -- 普通模式判断 if layer >= chapterData.limitlevel then return 4 end - local relayData = role:getAdvData():isHaveRelay(layer, chapterId) + local relayData = role:getAdvData():isHaveRelay(layer, chapterId, true) if not relayData then return 6 end -- 不是中继层 if layer ~= 1 then if (advPass[chapterId] or 0) < relayData.floor then return 21 end diff --git a/src/adv/Adv.lua b/src/adv/Adv.lua index 4e08e00..7ebeb22 100644 --- a/src/adv/Adv.lua +++ b/src/adv/Adv.lua @@ -61,10 +61,10 @@ function Adv:initByInfo(advInfo) self:initBattle(advInfo) end -- 找出level 是否存在中继层 -function Adv:isHaveRelay(level, chapterId) +function Adv:isHaveRelay(level, chapterId, force) level = level or self.level chapterId = chapterId or self.chapterId - if level == 1 then return end + if level == 1 and not force then return end local campsiteCsv = csvdb["adv_chapter_campsiteCsv"][chapterId] for _, campsite in ipairs(campsiteCsv) do -- libgit2 0.21.2