diff --git a/src/GlobalVar.lua b/src/GlobalVar.lua index 1d0b047..2fcb954 100644 --- a/src/GlobalVar.lua +++ b/src/GlobalVar.lua @@ -130,6 +130,10 @@ TimeReset = { DailyBattle3 = 16, -- 特殊-每日副本(时钟箱) } +GuideStep = { + AdvGuide = 1010, +} + --客户端不需要知道这个 AdvSpecialStage = { [1]= "In", diff --git a/src/adv/Adv.lua b/src/adv/Adv.lua index c76c69a..be6dc1e 100644 --- a/src/adv/Adv.lua +++ b/src/adv/Adv.lua @@ -111,6 +111,11 @@ function Adv:initByChapter(chapterId, level, isToNext, notNotify, isRelay, isEnt else mapId = self:randomMapId(chapterId, level) end + + if isEnter and not self.owner:checkOverGuide(GuideStep.AdvGuide) then + mapId = 101 + end + self.isRelay = isRelay local isNewRelay = false if self.isRelay then -- 中继层 diff --git a/src/models/RolePlugin.lua b/src/models/RolePlugin.lua index 976fd2d..cd53bcc 100644 --- a/src/models/RolePlugin.lua +++ b/src/models/RolePlugin.lua @@ -1372,6 +1372,15 @@ function RolePlugin.bind(Role) return RANK_ADV[idx] end + -- 是否需要进行引导 + function Role:checkOverGuide(guideId) + local funcGuide = self:getProperty("guideId") + if funcGuide:getv(guideId, 0) > 0 then + return true + end + return false + end + end return RolePlugin \ No newline at end of file -- libgit2 0.21.2