Tornado disasters + settings toggle

- Monthly-chance tornadoes (after month 30 grace) carve a wide erratic
  path, flattening buildings into rubble; anchors stay consistent
- 'Tornado disasters' toggle in menu settings, persisted
- Help handbook documents the hazard and the rebuild loop
- Engine suite grows to 45 assertions (spawn damage, event, anchors,
  suppression when disabled); soak keeps economy focus disaster-free
This commit is contained in:
PolyCity
2026-08-22 19:37:36 +00:00
parent 2a614b5435
commit 77931e9747
14 changed files with 101 additions and 1 deletions
+2
View File
@@ -49,6 +49,7 @@ class Game {
// ---------- lifecycle ----------
start(city) {
city.disastersEnabled = this.settings.disasters !== false;
this.teardown();
this.city = city;
@@ -131,6 +132,7 @@ class Game {
Object.assign(this.settings, patch);
localStorage.setItem(SETTINGS_KEY, JSON.stringify(this.settings));
if ('shadows' in patch && this._parts) this._parts.renderer.setShadows(patch.shadows);
if ('disasters' in patch && this.city) this.city.disastersEnabled = patch.disasters !== false;
}
queryTile(tile, x, y) {