# Nation Zero — how character weighs events (decision 18.10, «характер должен управлять событиями»; built 19.10).
# Eight dispositions 0–1 live on every islander (engine/dispositions.py): temper, patience, courage, sociability, loyalty, pride,
# stubbornness, pity. Heroes get them from the trait their mind wrote (one sonnet call per hero, provenance in the codex); everyone
# else from culture and role, deterministically. The weight of a person for an event kind:
#     weight = base + Σ coef × (disposition − 0.5), never below floor
# ≈ 1 for an ordinary person. The simulation multiplies the chance of taking part by this weight (quarrels, fights, thefts, help,
# brave sorties, refusing an order, running away…). engine/meaning_check.py uses the same table to judge whether an event
# that did happen was in character (ratio of the actor's weight to the median of their people).
floor: 0.05
events:
  quarrel:   {base: 1.0, temper: 1.6, patience: -1.2, pride: 0.5, pity: -0.3}
  fight:     {base: 1.0, temper: 1.8, courage: 0.6, patience: -1.0, pity: -0.8}
  theft:     {base: 1.0, loyalty: -1.4, pity: -0.4, pride: -0.3, patience: -0.4}
  help:      {base: 1.0, pity: 1.6, sociability: 0.5, patience: 0.3}
  share:     {base: 1.0, pity: 1.4, sociability: 0.4, loyalty: 0.3}
  sortie:    {base: 1.0, courage: 1.8, patience: -0.3, stubbornness: 0.2}
  disobey:   {base: 1.0, stubbornness: 1.5, pride: 1.0, loyalty: -1.6, temper: 0.4}
  runaway:   {base: 1.0, loyalty: -1.6, courage: 0.4, sociability: -0.4}
  jealous:   {base: 1.0, pride: 1.0, temper: 0.5, patience: -0.3}
  crush:     {base: 1.0, sociability: 0.8, courage: 0.2}
  friend:    {base: 1.0, sociability: 1.4}
  song:      {base: 1.0, sociability: 1.0, pride: 0.2}
  story:     {base: 1.0, sociability: 1.0, pride: 0.3}
  stranger:  {base: 1.0, courage: 0.8, sociability: 0.8}
  leader:    {base: 1.0, pride: 0.8, loyalty: -0.8, stubbornness: 0.4}     # grumbling about the leader at the fire
  teach:     {base: 1.0, patience: 1.0, sociability: 0.3}
  home:      {base: 1.0, courage: -0.4, sociability: -0.3}
  fire:      {base: 1.0, patience: 0.5}
  grief:     {base: 1.0}
# A leader never quarrels without a cause: only after someone contested the decision (a grudge against the leader, or low morale),
# and the chance is scaled by the leader's own weight — a calm, patient leader ends up ~5× rarer in a quarrel than a hot-headed one.
leader_quarrel:
  needs_cause: true
  cause_texts:
    - "after {other} contested {pos} ration plan"
    - "after {other} refused the work {subj} had set"
    - "over the leader's orders"
# Out of character: an actor whose weight is below this share of the median of their people. In the live engine the rule re-draws the
# actor (up to `redraws` times) before anything is written; what still slips through gets the mark «not in their nature, and people noticed».
out_of_character:
  ratio_below: 0.45
  redraws: 3
# Nicknames always carry their cause: the moment or event that earned them is named in the text and linked in data.because.
nicknames:
  leader:
    the Stubborn: "a quarrel over the leader's orders, or laws kept unchanged through a week of falling morale"
    the Steady:   "a storm or a week of hard days with no deaths and no quarrel touching the leader"
    the Absent:   "the mind gave no plan (the people followed the previous one) in the last week"
