During the generation of levels, the following events occur:
- the sequence of rooms changes (the exception is the boss room, it should always be at the end of the level; the boss can only be in one room);
- the number of entrances\exits in the rooms changes;
- the location of the secret room changes;
- all minerals are restored;
- monsters and bosses are restored;
Generation Rules:
- The LAST room will ALWAYS be the boss room;
- Transitions between rooms can be in any order;
- The number of entrances\exits from rooms will be a minimum of 2, a maximum of 4;
- The entrance to the secret rooms appears where the transitions between the main rooms are located;
- After the boss room, there should be an exit to a safe place;