Expand description
Tornadoes: the environment forms one while it rains
(Environment::update); it crosses the map along a jagged line, flattening crops and trees,
wrecking buildings and killing animals and citizens near it. See docs/TORNADO.md.
- Setup: two random cells at least apart (at most a hundred tries), a 129-point line between them bent by midpoint displacement, the event “a tornado has touched down” (type 30, severity 3).
- Update: when its particles are gone the entity goes; else it follows the line (within 3 cells of its point, the next point is 10 further), wrecks what is near or, at the end, stops forming particles, and moves a second toward its point on the ground.
Original: TornadoComponent: FUN_140058f00, FUN_1400592e0, FUN_140058630,
FUN_1400589a0; following the line, FUN_1400ac6b0.
Structs§
- Tornado
- The component’s state.
- Tornado
Template - TornadoDescription.
Functions§
- displace
- Bend a line by midpoint displacement: the point midway between
aandbmoves off the line, to its left, by a random amount up to a quarter of their distance; then each half is bent the same way.