village-builder

VB-238: Refactor: a tie’s eviction and floor in sim/relations, written as plain cases

Status: done (2026-11-11) Priority: 3 Size: S Design ref: none (code structure). Goal: put (src/sim/relations.js:35) decides whether a new tie at the cap is kept by if (worst < 0 ? !isKin : !isKin && w <= least) return; else if (worst >= 0) ..., and raiseTie tests !((p.ties.get(b) || 0) >= w). Both are right and hard to check by reading. Write them as their cases, with no change to what they do. Acceptance criteria:

Implementation notes

Validation notes