Three layers

Honor belongs to a Master. The server keeps it in three places:

LayerKeyChanges
GlobalMasterAt once, from the global column of the catalog
SettlementMaster, settlementLater, when a grudge or a rumour reaches it
Personal grudgeMaster, townsperson identityAt once, on the witness who saw the offence

Each table is sparse. A Master who never did anything wrong has one global row and nothing else. A settlement row exists only once a grudge or rumour reached it.

Why not one list per NPC

The first design gave every NPC its own reputation list. That does not fit how townsfolk work. They are re-derived, not persisted: a person exists as an entity only while a player is near, and there are millions of them. A list per person is a table the size of the world, written for people nobody meets twice.

Most questions are also asked of a town, not a person: shops are priced per settlement, and brokers “talk to each other”. So the grudge is personal only for a short time, and the settlement holds the lasting part.

A grudge is keyed by TownsfolkIdentity (settlement, household, member). The entity id changes each time a person re-materialises; the identity does not.

The catalog

Every offence and every good deed is a row in honor.yml, with its global and local amount. The numbers come from the offence table. Zone multipliers, thresholds, decay and the cap live there too, so balancing never touches code.

The catalog also holds offences that nothing can commit yet, such as dispelling a ward stone. Each has one entry point that its future feature calls. Abandoning and completing a commission are charged to the settlement of the board where the master signed, not to a townsperson: the board network has no broker NPC. Until then a GM reaches them with /honor act <ACT>. That is deliberate: the numbers are tested now, and each feature only has to call one method.

Recording an offence

HonorService.record takes the offence, the offender, the position and the witnesses.

  1. Find the witnesses: materialised townsfolk and players within perception range of the offender.
  2. Inside a ward field the protected-zone rule applies: the offence counts without a witness and the loss is doubled.
  3. Apply the global amount if anybody saw it (or the ward did).
  4. Apply the local amount as a personal grudge on each townsperson who saw it. An offence inside a settlement footprint with no townsperson in range goes straight to the settlement.

Stolen goods

Goods that fall out of somebody’s keeping lie on the ground as SpilledProperty:

  • the contents of a knocked-down chest;
  • what a knocked-down or burned-out station holds: queued ingredients (a mint’s gold bars), a farm’s bundle and egg, an incubator’s egg;
  • the till of a destroyed auction house;
  • the goods of a mail sack whose seal was broken.

Taking such a pile records the STEAL_* offence of the pile’s item level, and the Thief effect if somebody saw it. The owner takes their own back for nothing. Robbed parcel goods have no owner, because the post already paid the senders back.

Each pile also carries its owner’s Honorable Citizen level: the master who placed the chest, station or house, or the sender of the parcel. It raises the loss by 20% a level. PropertySpill reads the level off the tick when the goods spill, because the pickup runs on the tick and the owner may be offline. Spilled goods are not stored, so after a restart they are plain loot.

The Aggressor flag

Self-defense must never cost honor. The first player to harm a player who is not an Aggressor gets the Aggressor effect for 180 seconds. It is a status effect, so everybody in range sees it.

Damage between players is where the flag is set, in the damage system, before the death phase. The kill handler then only has to ask one question: did the victim carry Aggressor at the moment of death? If so, nothing is recorded.

Gossip

A grudge travels on a slow cadence, like rumour expiry. Every few minutes HonorGossipSystem:

  • moves half of each grudge older than one Bestia day into the settlement’s honor, and marks it moved;
  • when a settlement’s honor falls below -100, marks it permanent and posts a rumour through the rumour ledger.

The rumour reaches nearby settlements by the ledger’s own distance rule. Each town that hears it loses honor scaled by the rumour’s strength at that distance. Because it is a normal rumour, the townsfolk there also mention the Master by name in conversation, with no extra dialog code.

A witness also shouts once at the moment of the offence, in public chat. Players nearby see who did it before any rumour has time to travel.

Decay

Decay is computed on read, from the last time the value changed. Nothing ticks per Master, and offline time counts without any work. This is the same f(t) approach the settlement ledger uses.

Each layer keeps what was earned and what is owed apart. Only what is owed heals:

  • A loss of global honor heals by 1 point per real-time day, once a full day passed without a new loss.
  • Settlement honor and grudges heal the same way, unless they fell below -100 and became permanent.
  • Gains stop at each layer’s cap (+100 for global honor) and are not banked beyond it.

Atonement

HonorService.atone is what a Shrine of Atonement calls once the price is paid (Atonements, priced by AtonementPrice). It lowers the global debt so the value is at least 0 and keeps what was earned. LocalHonorRegistry.forget deletes every settlement and grudge row of the master, permanent ones too. Dishonored and Thief are removed. The master row counts atonements per world (master.atonements, reset with a new world), which doubles the next price.

The shrines come from the worldgen stage AtonementShrineStage and are raised at every boot by ShrinesOfAtonement; they are not stored.

Where honor is read

  • Shop prices. The combined value (global + settlement + the merchant’s grudge) scales the buy price up and the sell price down. It never closes the shop’s spread. Below -60 the shop refuses.
  • Conversation. Below 0 townsfolk are unfriendly and offer fewer topics.
  • Behaviour. Below -60 townsfolk flee from the Master or turn hostile.
  • The Master’s own profile. Global honor is sent to its owner only.
  • Everybody nearby. A Master below zero carries a visible Dishonored mark, a thief a Thief mark for six hours, and an aggressor an Aggressor mark for 180 seconds. A bounty for an outlaw or a thief is paid once a day per victim and killer.

Last updated 04 Dec 2026, 01:08 +0100 . history