wip
This commit is contained in:
@@ -169,6 +169,12 @@ function getNextPyloneStep(step: PyloneStep): PyloneStep {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function advancePyloneStep(state: GameState): GameStateUpdate {
|
function advancePyloneStep(state: GameState): GameStateUpdate {
|
||||||
|
if (state.pylone.currentStep === "locked") {
|
||||||
|
return {
|
||||||
|
pylone: { ...state.pylone, currentStep: "alert" },
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const nextStep = getNextPyloneStep(state.pylone.currentStep);
|
const nextStep = getNextPyloneStep(state.pylone.currentStep);
|
||||||
if (
|
if (
|
||||||
nextStep === "manipulation" &&
|
nextStep === "manipulation" &&
|
||||||
|
|||||||
Reference in New Issue
Block a user