Status: done (2026-10-31)
Priority: 2
Size: M
Arch: social
Phase: implement
Design ref: Customs and culture (How attitudes move: contacts and ties). Kim, 2026-10-30 (VB-059): a relationship holds the existing tie (familiarity) and an opinion from −1 to 1 (liking); kin links stay in the family records. Relationships review, 31 Oct 2026 (docs/review-relationships.md, section 7): opinion is the sum of timed memories, as in RimWorld and Crusader Kings III, so it can be explained and does not saturate; the starting values below were replayed over real contact hours and accepted.
Goal: Today p.ties maps another pawn’s id to a tie weight, used by customs drift. Give each pawn an opinion of the others it has dealings with, which talk (VB-061), help (VB-039, VB-106) and courting (VB-036) read and change, and show it.
Acceptance criteria:
p.rel: a Map from the other pawn’s id to { mem, band }, beside p.ties (which keeps the tie weight and its uses unchanged). mem holds at most one memory per kind, { v, t }; a record exists while it holds a memory. @state documented; checked by checkState.opinionOf), −1 to 1: the standing’s value (spouse, parent or child +0.3, sibling +0.2, housemate +0.1) plus each memory as it is now. A memory gains its value at each event, up to its cap, and fades linearly to 0 over its days from the last event: chatted +0.03 (cap +0.2, a year), a good talk +0.1 (cap +0.5, 3 years), cross words −0.12 (cap −0.6, 3 years). Opinion has a direction. Tunables in SOCIAL (src/sim/rules.js).compat), −1 to 1, from the world seed and the two ids, so it needs no memory: two uniform draws less 1, less 0.02 a year of age gap beyond 5 years (at most 0.4). VB-061 weights the outcome of a talk by it.tools/sim.js --report relations: per village, the records and their words, and friends and disliked people outside the household per adult.rel fields (32 dumps compared).
Notes / questions: