2 Commits

Author SHA1 Message Date
dumb-kevin 9172f5f49d Fix snow depth: uniform accumulation, z-normalization, debug overlay
- Update all tracked OMTs per tick, not just the player's
- Seed new OMTs from nearest neighbor instead of starting at 0
- Normalize z to 0 everywhere (lookup, storage, save/load)
- Handle old saves with "z" field gracefully
- Add snow_depth_desc widget to default sidebar layout
- Add debug overlay for snow depth (Info -> key 'W')
- Add tests for multi-OMT accumulation, seeding, z-normalization
2026-03-13 23:43:38 +04:00
dumb-kevin 9a69a59718 Add per-OMT snow depth tracking and movement penalty
Track snow accumulation/melt per overmap tile in weather_manager.
Snow builds up during snowfall weather and melts above 0C. Depth is
updated incrementally every game minute, with a 1-hour catch-up clamp
for stale entries. Unvisited OMTs seed from nearest neighbor data.

Walking through snow outdoors adds a movement penalty visible in the
cost breakdown UI (25/50/100 for light/moderate/deep snow).

Includes sidebar widget, save/load serialization, and runtime pruning
of zero-depth entries.
2026-03-11 05:44:31 +04:00