// Furniture · RimWorld Mod
VFE - Architect: Cell Walls And Doors Fix
Description: This mod restores the intended behavior of Cell Walls and Cell Doors from Vanilla Furniture Expanded - Architect.
Description:
This mod restores the intended behavior of Cell Walls and Cell Doors from Vanilla Furniture Expanded - Architect.
With this mod, the Prison Break event can no longer start in prison cells that are completely enclosed by Cell Walls and Cell Doors. Such rooms are treated as escape-proof, meaning the prison break timer for prisoners inside them is effectively considered "never."
I deliberately use the word "restore" because this functionality appears to have existed in older versions of the game. The descriptions of Cell Walls and Cell Doors state that prisoners cannot attack them, but this is no true in practice. After looking through the original source code, I found that the implementation never actually prevented prisoners from attacking these structures. Instead, it prevented prison breaks from being initiated in the first place. However, due to changes in RimWorld's internal code over time, the original VFE implementation no longer works, causing Cell Walls and Cell Doors to behave like ordinary walls and doors.
This fix introduces a new room validation system that restores the original intended behavior without interfering with the obsolete code still present in the original mod.
Performance:
The mod is designed to be as lightweight as possible. Escape-proof rooms are recalculated only when the room itself changes, using a small Harmony patch hooked into RimWorld's own room update logic. There are no continuous map-wide scans or per-tick checks, making the performance impact effectively negligible.
P.S.:
The order in the mod list doesn't matter. The main thing is that you have the mods that are listed in the dependencies.