Expand description
Fire: FireComponent, its work FireWork, WellComponent and the town’s water sources (Game:
shore points, wells, per 8 × 8 block). See docs/FIRE.md.
A building catches fire now and then (or from a burning neighbour), is damaged for half the burn (DestroyComponent), and marks the cells around it as an emergency: citizens there drop what they do and carry buckets from the nearest water to it. Enough buckets, or the burn running out, put it out; it is left as rubble.
Original: FUN_1400055e0, FUN_14005da70.
Structs§
- Fire
- FireComponent: buckets thrown, buckets at the last spread, burn left (burning while above zero), towards the next spread, towards the next ignition check.
- Water
- The town’s water sources.
Constants§
- LAYER
- The map layer counting fires over each cell (total
Map). - NO_
FIRES Gamebit 6: fires are off (no disasters).
Functions§
- has_
emergency - A fire’s layer over the home’s or the workplace’s map-rectangle centre, or the citizen’s own cell.