Commit 1d4eec983c2c834fa3da516556817499ab64d22c

Authored by zhouhaihai
1 parent 7474dd12

冒险引导 锁定地图101

src/GlobalVar.lua
... ... @@ -130,6 +130,10 @@ TimeReset = {
130 130 DailyBattle3 = 16, -- 特殊-每日副本(时钟箱)
131 131 }
132 132  
  133 +GuideStep = {
  134 + AdvGuide = 1010,
  135 +}
  136 +
133 137 --客户端不需要知道这个
134 138 AdvSpecialStage = {
135 139 [1]= "In",
... ...
src/adv/Adv.lua
... ... @@ -111,6 +111,11 @@ function Adv:initByChapter(chapterId, level, isToNext, notNotify, isRelay, isEnt
111 111 else
112 112 mapId = self:randomMapId(chapterId, level)
113 113 end
  114 +
  115 + if isEnter and not self.owner:checkOverGuide(GuideStep.AdvGuide) then
  116 + mapId = 101
  117 + end
  118 +
114 119 self.isRelay = isRelay
115 120 local isNewRelay = false
116 121 if self.isRelay then -- 中继层
... ...
src/models/RolePlugin.lua
... ... @@ -1372,6 +1372,15 @@ function RolePlugin.bind(Role)
1372 1372 return RANK_ADV[idx]
1373 1373 end
1374 1374  
  1375 + -- 是否需要进行引导
  1376 + function Role:checkOverGuide(guideId)
  1377 + local funcGuide = self:getProperty("guideId")
  1378 + if funcGuide:getv(guideId, 0) > 0 then
  1379 + return true
  1380 + end
  1381 + return false
  1382 + end
  1383 +
1375 1384 end
1376 1385  
1377 1386 return RolePlugin
1378 1387 \ No newline at end of file
... ...