VB-363: Dress: clothing wears out, and a worn dress costs health in winter and standing
Status: done (2026-11-28)
Priority: 3
Size: S
Arch: mill
Phase: implement
Design ref: Goods, production and animals (The mill and the loom, the kiln and the quarry); backlog/VB-185.md
Goal: Each person wears a length of cloth out in about 3 years; without sound dress winter costs a little health and standing falls. Slice 6’s plan (VB-185, 11 Nov), from Kim’s answers in the session.
Acceptance criteria:
pawn.dress: { worth, at }, read in closed form: 1 when new, 0 after DRESS.years (3) (rule 3). On the household’s planning day a pawn whose dress is under DRESS.mend (0.3) takes a length of cloth from the store (reason dress); children take half a length.
Under 0.1 (rags): the cold’s health loss in winter is DRESS.cold (1.5) times, and standing loses DRESS.shame (0.1). Above 0.7 with dyed or fine cloth: nothing yet (slice 8).
The scenarios’ first people start with dress of worth 0.3 to 1, drawn; the generated households with fleeces and a loom by their sheep.
Numbers before and after (populous small, seeds 7 and 42, 15 years): people in rags by year and household, health and deaths in winter, cloth used and left, whether households without sheep get cloth at the fair or by gift. Cost: no daily pass; the read is closed form at the death roll’s cadence.
The numbers that move are reported before and after at the seeds and maps named (Working rules); npm run verify passes its hard checks.
Notes:
Numbers are Proposed by slice 6’s plan (11 Nov) on Kim’s answers to the shape; the hours are in the game’s work hours (576 an adult a year) and, but for the textile shares, from general reading not checked by search: each task reports its numbers and the wrap-up tunes them.
16 Nov 2026 (Kim’s answers after the plan of VB-702; section 14): A dress carries the grade of its cloth: pawn.dress gains it, and DRESS.years is multiplied by the grade’s life. Cloth is given out by rank, the holder and spouse first and in the best (13.5). ‘Fine cloth’ in the second criterion is a kind of cloth (slice 8), not the grade fine.
23 Nov 2026 (VB-761, workmanship, landed): a made piece’s grade is drawn by VB['sim/workmanship'].draw(st, maker, craft) (stream making; the maker is the pawn who finished the job, passed to a kind’s done as its fifth argument); a graded good declares graded: {work: [properties]} in declareGood, and reads its row by grade from Goods.kindRow(good, kind).grades[grade] (life, work, worth, the properties scaled); the worth rule takes grade in its context; jobs.allot gives a making of a graded good to the household’s most skilled hand at its craft; expectedWorth(st, id, craft) is the head’s estimate. pawn.dress carries its cloth’s grade; DRESS.years times the grade’s life; dress by rank, the holder and spouse first in the best.
Notes (VB-363 implement)
Built: sim/dress (DRESS, worth closed form, mend on planReviewed day, head then grown then children); cold x1.5 in sim/hunger updateHealth and In rags -0.1 in society standingParts (standing refreshes at its yearly round, not on the planning day). First people’s worth 0.3..1 drawn from look (no stream draw: keeps the seeds); a household’s sheep seed its fleeces (sim/textile seedFleeces); looms were VB-362’s.
Decisions: a child takes a whole length (the store holds whole lengths) and its dress lasts 1/DRESS.child = 2x as long; cloth is taken the least worth first (no best-by-rank yet, the stores’ rule); the Above-0.7 clause waits for slice 8.
Measured, populous 180x130, 15 years (before = mending and effects off): seed 7 after: people in rags 356 of 419, 87 of 106 households (before 396/432, 88/103); winter deaths 8 (before 8) in year 15, mean health 98.8 (98.7); cloth taken by dress 28 to 90 a year, left 0 to 2 (before: 177 lying unused). Seed 42: rags 274 of 375 at y5, left 0 to 2 against 263 unused. Only 19-25 households ever hold cloth; those without sheep get none (no fair or gift in cloth, goods.js “not yet dealt”): see VB-1976.
Left: the cloth supply is far below need (some 30 lengths a year for 400 people who need about 130): tuning note; VB-1976 carries cloth at the fair/gift. Rank-ordered best cloth for holder: not done.
Revision (review F1, F4): a person made after the start has dress worth 0 (nothing appears) and is mended from the household’s cloth; so more people are in rags than the figures above, which were run before it. Seed 7 by year before this change, people in rags (households in rags): y1 58 (35), y2 197 (55), y3 255 (66), y5 272 (72), y7 310 (76), y10 312 (75), y12 327 (79), y15 356 (87); cloth taken 12, 48, 76, 92, 74, 61, 46, 38 … 28 a year; left 0 to 4. Not rerun after the change. F3 (growth on other seeds/founders) left for the nightly balance.