fix bug where empty rooms without puzzles could not be skipped
This commit is contained in:
@@ -35,6 +35,11 @@ namespace EscapeRoomEngine.Engine.Runtime
|
||||
Logger.Log($"Skipping {this}...", LogType.PuzzleFlow);
|
||||
|
||||
_puzzles.ForEach(puzzle => puzzle.PuzzleState.Solve());
|
||||
|
||||
if (_puzzles.Count == 0)
|
||||
{
|
||||
exit.fromOut.DoorState.Unlock();
|
||||
}
|
||||
}
|
||||
|
||||
internal void AddPuzzle(PuzzleModule puzzle)
|
||||
|
||||
Reference in New Issue
Block a user