Commit 9c69df94 authored by hewenhao's avatar hewenhao

feat: 特殊关卡不参与pk模式

parent f5b40cfd
...@@ -58,8 +58,17 @@ function stageToStageNext (stageList: Stage[]): {nextList: StageNext[]; showList ...@@ -58,8 +58,17 @@ function stageToStageNext (stageList: Stage[]): {nextList: StageNext[]; showList
showList = newList.slice(0, Math.max(currentIndex + 3, 5)) showList = newList.slice(0, Math.max(currentIndex + 3, 5))
} }
/** 设置pk历史页面返回后引导 */ /** 设置pk历史页面返回后引导 */
if (showList[currentIndex - 1]) { if (currentIndex !== -1) {
showList[currentIndex - 1].$lastPassedStage = true let current = currentIndex
while (current) {
const currentItem = showList[current]
if (currentItem && currentItem.status === StageStatus.PASSED && currentItem.type !== StageType.Special) {
currentItem.$lastPassedStage = true
break
}
current -= 1
}
} }
let currentPart let currentPart
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment