RoomFinder

RoomFinder

533 Downloads

LevelSequenceOverridden is ignored on replay

TheGrayAlien opened this issue ยท 1 comments

commented

If you have LevelSequenceOverridden set and complete (or fail) a module and hit Play Again the level sequence reverts to normal for the replay. This doesn't happen if you quit and replay, however.

commented

Thanks @TheGrayAlien !

Looking over our code, we indeed set gsm.levelSequence to the player's desired level sequence, which gets used in GameStateMachine.cs to create a new SerializableEventStartNewGame().

Playing again, on the other hand, creates a new SerializableEventStartNewGame() from PlayAgainEventHandler.cs.

We'll either need to modify PlayAgainEventHandler.cs in a similar way as we do GameStateMachine.cs, or make modifications to the code that both intersect (SerializableEventStartNewGame()), or something else.