Status: done (2026-11-11) Priority: 3 Size: M Design ref: World, climate and travel (World and scale: Ground); Goods, Goods of place and side crafts (In the ground) Goal: Kim, 11 Nov: the terrain generation adds clay and a number of minerals, for a setting of Europe 1300 to 1700, continental and Scandinavian. Generation and representation only: a per-tile layer over the biomes, deposits finite with a chance of sources that do not run out, tuned pure chance by island so that an island with everything is uncommon and islands commonly differ. Acceptance criteria:
w.rock): granite, limestone, sandstone or slate in provinces, with lenses of marble (high limestone) and
soapstone (upland granite or slate).w.deposit, w.depositLeft), one kind a tile, as veins: clay (low, damp ground), bog iron (marsh, lake shores), iron, copper
and lead-silver (uplands), tin (upland granite only), gold (the high mountains). Finite, in loads; a vein of clay, iron, copper,
lead-silver or tin may hold one tile that does not run out (ENDLESS).world/7 and world/42 gain rock, deposit and
depositLeft; no other entry changes.node tools/geology.js reports the shares by map and island; tests/geology.js (npm test) checks the layers.design.md (World and scale: Ground; Goods of place: In the ground) and QUESTIONS.md (what is still open) record it.
Notes:src/gen/geology.js (new, gen/geology, kernel layer, before gen.js, which calls lay with its arrays, a random
source of its own, seed ^ 0x6e0106, and the biome codes). Bedrock: PROVINCES scatters a centre for every 2,200 map tiles, each with
a rock by weight (granite 45, limestone 22, sandstone 18, slate 15); a tile takes its nearest centre’s rock, the border made ragged by
noise. VEINS, laid island by island, the rarest first: a kind is on an island with chance, less in proportion on one with fewer
than full host tiles; then a vein for every per host tiles, each grown through host tiles from a random one. Amounts are
placeholders until a good uses them. src/page/ground.js (new) draws the overlay once a world; page/tileinfo adds the two lines.
gen.js keeps its 547 lines (the call is in the returned object; hp is declared with landIdx).WORLD of src/sim/saves.js (a loaded run regenerates them from its seed) and have no invariant in checkState yet: the
first task that digs adds both. No new coupling between systems.node tools/geology.js), share of maps and of islands of 60 land tiles or more with each kind. Small map, seeds 1 to 20, 101
islands: granite 100% and 81%, limestone 95 and 62, sandstone 85 and 38, slate 75 and 32, soapstone 70 and 18, marble 40 and 10; clay 100
and 71, bog iron 95 and 49, iron 80 and 29, lead-silver 65 and 19, copper 50 and 12, tin 50 and 12, gold 10 and 2. An island has 4 of
the 13 kinds at the median and 9 at most; none has all; two islands of a map share 36% of their kinds. Medium, seeds 1 to 10, 63
islands: median 4, most 9, none with all, 33% shared.QUESTIONS.md (VB-357), all six answered by Kim on 11 Nov (QUESTION_ARCHIVE.md; design.md, In the ground):
the upland ores are found, the rest known; bog iron grows back; quarrying (VB-332, noted there) gives the bedrock’s kind; the uses as
proposed; amounts tuned when a good digs; and the four further resources, built in the second batch below.ENDLESS: a spring flows on), peat (marsh tiles bog iron left), flint (limestone below 0.3 of
the land’s height, its sandy shores too) and amber (sandy shores, rare, 5 to 40 loads). The overlay marks them by family: a disc for an
ore, a square for clay and peat, a diamond for salt, flint and amber. Each kind of VEINS now draws from a random source of its own
(stream(k), keyed by its code), so a kind added later leaves the others where they were; this once, every vein moved. Tin’s chance
0.12 to 0.25: the 50% of maps first reported was a lucky 20 seeds (13% over 80).rock, deposit and depositLeft of world/7 and world/42 re-recorded; no other entry changes.