Commit 1d4eec983c2c834fa3da516556817499ab64d22c
1 parent
7474dd12
冒险引导 锁定地图101
Showing
3 changed files
with
18 additions
and
0 deletions
Show diff stats
src/GlobalVar.lua
@@ -130,6 +130,10 @@ TimeReset = { | @@ -130,6 +130,10 @@ TimeReset = { | ||
130 | DailyBattle3 = 16, -- 特殊-每日副本(时钟箱) | 130 | DailyBattle3 = 16, -- 特殊-每日副本(时钟箱) |
131 | } | 131 | } |
132 | 132 | ||
133 | +GuideStep = { | ||
134 | + AdvGuide = 1010, | ||
135 | +} | ||
136 | + | ||
133 | --客户端不需要知道这个 | 137 | --客户端不需要知道这个 |
134 | AdvSpecialStage = { | 138 | AdvSpecialStage = { |
135 | [1]= "In", | 139 | [1]= "In", |
src/adv/Adv.lua
@@ -111,6 +111,11 @@ function Adv:initByChapter(chapterId, level, isToNext, notNotify, isRelay, isEnt | @@ -111,6 +111,11 @@ function Adv:initByChapter(chapterId, level, isToNext, notNotify, isRelay, isEnt | ||
111 | else | 111 | else |
112 | mapId = self:randomMapId(chapterId, level) | 112 | mapId = self:randomMapId(chapterId, level) |
113 | end | 113 | end |
114 | + | ||
115 | + if isEnter and not self.owner:checkOverGuide(GuideStep.AdvGuide) then | ||
116 | + mapId = 101 | ||
117 | + end | ||
118 | + | ||
114 | self.isRelay = isRelay | 119 | self.isRelay = isRelay |
115 | local isNewRelay = false | 120 | local isNewRelay = false |
116 | if self.isRelay then -- 中继层 | 121 | if self.isRelay then -- 中继层 |
src/models/RolePlugin.lua
@@ -1372,6 +1372,15 @@ function RolePlugin.bind(Role) | @@ -1372,6 +1372,15 @@ function RolePlugin.bind(Role) | ||
1372 | return RANK_ADV[idx] | 1372 | return RANK_ADV[idx] |
1373 | end | 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 | end | 1384 | end |
1376 | 1385 | ||
1377 | return RolePlugin | 1386 | return RolePlugin |
1378 | \ No newline at end of file | 1387 | \ No newline at end of file |