Commit 1d4eec983c2c834fa3da516556817499ab64d22c
1 parent
7474dd12
冒险引导 锁定地图101
Showing
3 changed files
with
18 additions
and
0 deletions
Show diff stats
src/GlobalVar.lua
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 | ... | ... |