Status: done (2026-11-23) Priority: 2 Size: M Design ref: design.md, Goods and the farming year (Water by the site); backlog/VB-1543.md Goal: the map knows where fresh water is and how deep a well would be, and shows both; nothing behaves differently Acceptance criteria:
w.fresh (Uint8 a tile: none, lake, brook, stream, river, marsh, well; codes and names in src/world/, read there and not through the gen facade) is laid by the generator from the lake biome, w.river by its kinds and the marsh biome; @state line; no rule reads it yet.w.waterDepth (metres a land tile, a sentinel for no well) is computed once at generation by the formula of design.md, Goods and the farming year, Water by the site (The water table): height 120 m at w.he 1, the rise above the nearest water surface by steps over land, moisture, the bedrock’s factor, marsh 0.5, no well on mountain, snow and beyond WELL.deepest; its numbers are @tunable. The band of a depth (shallow, middling, deep, no well) is one function in src/world/.w.freshWalk (hours on foot over pathless summer ground to the nearest source that is not marsh) from one multi-source search at generation.node tools/same.js --base REF on the starting commit. A check on a small constructed map (tests/tiny.js): a tile beside a lake is shallow, a mountain has no well, marsh is a source of class marsh, the sea is none.Noted by VB-1543, 23 November 2026.
world/water (codes, WELL, band), gen/water (w.fresh, w.waterDepth, WATERTABLE), sim/water (w.freshWalk), page/water (the card’s lines, the Fresh water overlay, key U).w.freshWalk is not laid by the generator, which may not read the walking costs (sim/walking loads after it; tests/dependencies.js). sim/water lays it where a world enters a state (makeState; load, before the saved fields are put back), from the generated fields alone, so it is the same at seeding and after a load, and is not saved. A world shown with no state (the editor) has no walk: the card leaves the line out.stepCost’s on bare ground. No well’s line on a river’s tile; the sea’s card says nothing of water.tuning note.tools/same.js --base 126dded: 32 keys differ, all of them the three new fields of the world (absent before); no leaf of the state differs.waterSettled, new (generation had none): 16,103 tiles a small world, 38,476 a medium (the rise’s search and the walk’s; a land tile twice).page/icons went to 706 lines with the overlay’s icon: the lint is red until its split task is in the backlog (VB-1589, noted with priority 1).