Structural failure: Difference between revisions
Jump to navigation
Jump to search
| Line 5: | Line 5: | ||
<!-- "But then the ceiling fell and they were trapped and not able to kill" --> | <!-- "But then the ceiling fell and they were trapped and not able to kill" --> | ||
Happens semi-randomly when a part of building is destroyed. Collapse spreads a bit from the initial point, sometimes taking half the building in one "go". Spawns [[rubble]] and [[Crushed|traps]] creatures under it (being trapped can waste few turns). | Happens semi-randomly when a part of a building is destroyed. Collapse spreads a bit from the initial point, sometimes taking half the building in one "go". Spawns [[rubble]] and [[Crushed|traps]] creatures under it (being trapped can waste few turns). | ||
Often happens due to a [[zombie]] horde bashing buildings or due to [[fire]]. Since most rubble from collapse contains wood, it generally is flammable. | Often happens due to a [[zombie]] horde bashing buildings or due to [[fire]]. Since most rubble from collapse contains wood, it generally is flammable. | ||
Latest revision as of 16:10, 1 June 2022
Structural failure is a mechanism where a structure with inadequate support collapses.
Building collapse
Happens semi-randomly when a part of a building is destroyed. Collapse spreads a bit from the initial point, sometimes taking half the building in one "go". Spawns rubble and traps creatures under it (being trapped can waste few turns).
Often happens due to a zombie horde bashing buildings or due to fire. Since most rubble from collapse contains wood, it generally is flammable.
Currently roofs and floors are a single terrain type - all floors have roofs over them, all roofs have floors underneath. Chance of collapse happening depends on other tiles around it.
The algorithm for building collapse is:
- A structure that can collapse (roof) collapses when destroyed
- When a structure collapses, try to collapse its neighbors
- Each adjacent (8 directions) roof adds 2 "points" to resistance, a wall adds 3
- Multiply the resistance by 1.7
- Round the resistance down to integer
- Chance of collapse is one-in-resistance
- If the initial destroyed structure was a support one (wall) try to collapse all its neighbors again
Cave-in
Doesn't happen yet.