diff --git a/Aetheria/Game Design/Faction Play.md b/Aetheria/Game Design/Faction Play.md index b911088..3cfd5f1 100644 --- a/Aetheria/Game Design/Faction Play.md +++ b/Aetheria/Game Design/Faction Play.md @@ -1,4 +1,5 @@ --- +kind: proposal title: Faction Play description: "Candidate design for making factions play differently through NPC behavior, loadouts, resource distribution, visuals, and narrative hooks on the legacy Unity tree." --- @@ -11,7 +12,7 @@ Operator brief, 2026-10-03: "Navigating through the map should involve navigatin ## The Rule -**One faction, one learnable rule, one forced adjustment.** Every faction below gets a single headline quirk that a player can learn by watching, can state in one sentence, and must change what they do to survive or profit from. Each quirk is tested by naming the adjustment it forces. A quirk that changes nothing the player does is decoration and is cut; the cuts are listed in [[#Cut List]]. +**One faction, one learnable rule, one forced adjustment.** Every faction below gets a single headline quirk that a player can learn by watching, can state in one sentence, and must change what they do to survive or profit from. Each quirk is tested by naming the adjustment it forces. A quirk that changes nothing the player does is decoration and is cut; the cuts are listed in the Cut List of `docs/faction-play-design-record.md`. Three supporting rules keep the quirks honest: @@ -33,83 +34,13 @@ The catalog today holds twelve `Faction` records, all corporations with territor ## Prior Art -Established games that made factions play differently, what worked, and what failed: - -- **EVE Online, NPC pirate factions.** Each pirate faction deals a consistent damage profile and uses one kind of electronic warfare: Guristas jam, Serpentis dampen sensors, Angels paint targets, Blood Raiders neutralize capacitors. Players learn the pairing and refit before they undock. *Worked:* one stable quirk per faction, learnable and worth refitting for. *Failed:* the quirk lives entirely in the fitting screen; the NPCs themselves are static and farmable, so faction knowledge became a spreadsheet rather than a reading of behavior. Lesson: pair the loadout quirk with a behavior quirk the player sees in flight. -- **EVE security status and CONCORD.** Space is graded by how reliably force punishes crime, and players change route and conduct by grade. *Worked:* consequence attached to place is learnable and shapes navigation. The legacy `SecurityLevel { Open, Secure, Critical }` is the same idea at station scale. -- **Starsector faction doctrine.** Every faction's fleets come from one AI, varied by authored doctrine: aggression, ship size, quality against numbers, the mix of warships, carriers, and phase ships, plus the faction's blueprint roster. *Worked:* cheap and strong; one AI with per-faction parameters makes fleets read and fight differently. *Failed, per player reports:* some doctrines contradict the rosters they fly (an aggressive doctrine on fragile ships), which reads as a bug rather than a character. Lesson: behavior parameters and loadout must come from the same operating logic. This is the closest model for the legacy tree, because `Faction.Personality` is already a per-faction parameter dictionary that nothing reads. -- **Elite Dangerous Powerplay.** Powers are expressed mostly as contribution meters and merit activities. Both the original and the 2024 rework drew criticism that powers feel like grind targets: the player optimizes merit per hour and rarely meets a power's character in what its ships do. Lesson: a faction expressed as a progress bar is not a faction in play. -- **Mount & Blade.** Each kingdom's troop tree forces a counter: horse archers on open steppe, shield walls against archers, heavy cavalry needing room to charge. *Worked:* the loadout is the faction, and the player changes army composition and terrain choice to face it. -- **Escape Velocity.** Governments carry ally and enemy lists and per-government legal records; a crime against one government changes how its allies treat you. *Worked:* a small relationship table produces border politics without scripting. (From play knowledge; the primary documentation was not re-fetched for this pass.) -- **Freelancer.** Lawful houses patrol trade lanes and scan cargo for contraband; a reputation web ties factions together. *Worked:* the patrol scan is a learnable ritual that changes cargo and route choice. *Failed:* the web made allegiance feel arbitrary, and bribes reduced it to arithmetic. (From play knowledge.) -- **RimWorld.** Factions arrive differently: drop pods, sieges, sappers, mechanoid clusters. The player builds different defenses for each. *Worked:* the arrival pattern is the tell and the counter is a material choice. (From play knowledge.) -- **Shadow of Mordor, Nemesis system.** Individual orcs carry strengths, fears, scars, and memories of the player. *Worked:* named enemies who remember produce stories. *Failed:* enemies progress only through player deaths or explicit time skips, and the content cost of traits is high. Lesson for Aetheria: use it narrowly, for pirate crews, with a name, one rolled quirk, and a grudge, and nothing more. - -The shared lesson: **parameters on one AI, a loadout that agrees with the parameters, and a consequence tied to place.** Every faction below is built that way. +*Moved verbatim to the Prior Art section of `docs/faction-play-design-record.md`, a design record and not lore.* ## Lever Map -What exists on the legacy tree, and how each lever is used here. Tags in the faction sections say which kind of work a quirk needs: +`docs/faction-play-design-record.md` defines the work tags used in the faction sections below: **[data]**, **[state]**, **[rule]** and **[content]**. -- **[data]** Authoring only: faction fields, `Personality` weights, `Allegiance`, product roles, settings. -- **[state]** A state or transition on the existing `Agent`/`BaseState` machine. The tutorial sketch (`docs/tutorial-script-sketch.md`) already needs four of these: follow or escort, drift cold, flee, and sweep. This design reuses exactly those four and adds no others. -- **[rule]** A small rule in an existing owner, named where used. -- **[content]** A product, hull, or Ink story. - -### NPC behavior - -Every NPC ship today is a `Minion` (`SS/Agents/Minion.cs`) that patrols orbits and enters `CombatState` against the first visible enemy. `CombatState` already picks a preferred range from its weapons and aims at the target's most dangerous revealed weapon. Its tuning is global in `GameplaySettings`. - -The design moves that tuning onto the faction and gives `Minion` a small vocabulary of transitions, all read from `Faction.Personality` (a float per `PersonalityAttribute`, already on the record and unread). `Zone.CreateAgent` is where the profile is applied. Each attribute is a `PersonalityAttribute` record; the multi-way ones (`engage_on`, `target_priority`) are encoded as float bands. The attribute vocabulary: - -| Attribute | Meaning | Consumer | -|---|---|---| -| `engage_on` | Engage on detection, on identification (gear revealed), only when provoked (grudge), or on trespass (presence not permitted) | `Minion` target acquisition [state] | -| `preferred_range` | Per-faction replacement for the global `AgentRangeExponent` | `CombatState.SampleDps` [data] | -| `fire_discipline` | Per-faction `AgentMinHitProbability`: spray or wait for the sure shot | `FireControl.AgentFires` [data] | -| `target_priority` | Weapons (today's behavior), drives, cargo, or stations | `TrySelectTargetItem` [rule] | -| `break_off_hull` | Durability fraction at which the ship flees | flee [state] | -| `break_off_heat` | Hull temperature fraction at which the ship disengages or drifts cold | flee or drift cold [state] | -| `break_off_ammo` | Ammunition or charge fraction at which the ship returns to its anchor | follow [state] | -| `leash` | Maximum pursuit distance from an anchor (station, tender, or route) | `CombatState` exit [state] | -| `pack` | How many same-faction ships may engage one target at once; others hold | target acquisition [rule] | -| `share_track` | One ship's detection or grudge propagates to its faction in the zone | `WatchForGrudge` [rule] | -| `answer_call` | Respond to a same-faction or allied ship's combat or distress within range | follow [state] | -| `jettison` | Drop cargo when threatened | flee [state] | -| `quiet_until_commit` | Radiators off and thrust minimal until firing | drift cold [state] | -| `grace` | Seconds between detection and firing, during which a hail bark plays | `Entity.SetMessage` [rule] | - -Sticky grudges (`Entity.WatchForGrudge`) and stance gating already exist and carry most "memory" below. Grudges clear when the entity leaves the zone; that limit is used deliberately. - -### Relationships - -Player standing (`Galaxy.FactionRelationships`) is generated as Neutral and never changes, and reputation is out of the current scope (`docs/three-gates-scope.md`). NPC factions are Neutral to each other (`Entity.GetFactionRelationship`, marked `// TODO: Inter-faction relationships`). The design is built so that **every headline quirk works with relationships frozen**, carried by grudges, security levels, and stance. Quirks that need standing to move are marked *after reputation*. - -Cross-faction dynamics need NPC factions to dislike each other. See [[#Fork: Inter-Faction Relations]]. - -### Loadouts - -`LoadoutGenerator` picks products weighted by `Faction.Allegiance` over the distance to each manufacturer's headquarters. Product roles carry a mean and a deviation, which is already how the content pass encodes brand character (`docs/content-batch-one.md`: Zhestokost's 100-kelvin hull plateau, Finch's variance, Megiddo's no-weak-part shield). Ammunition is real: `InstantWeapon` draws magazines from cargo through `AmmoType`. So a faction's loadout identity is `Allegiance` (whose gear) plus the roles of its own products (how well made, how consistent). - -Gap: `DamageType` (Kinetic, Corrosive, Electric, Thermal, Optical, Ionizing) is carried on every shot and read by nothing. Two quirks below (Miss Terri's corrosion, Death Monkey cascade) want one **[rule]** in `FireControl`: a damage type modifies what it damages. Both have fallbacks that work without it. - -### Resource Distribution - -Mining yields nothing yet (`Zone.MineAsteroid` is a TODO; `BodyData.Resources` is never written). Today, resource distribution is carried by: station stock (each station holds 16 products drawn by the owner's allegiance), the cargo NPC ships carry and drop on death, the loot drop rate, station count and security level per zone, the owner's `InfluenceDistance`, and which factions appear as neutral wanderers. The faction sections use these. When `docs/faction-territory-target.md` lands (sectors and stations with supply-chain roles and a readable territory shape), the same per-faction design applies to roles; each faction section names its shape. - -### Visuals - -In space, faction identity is invisible today: hull prefab is the only visual difference, the project has two ship prefabs, and faction colors render only on the sector map. Three levers are available without a new system: - -- **Signature behavior** [state/data]: what a faction does with radiators, thrust, and active pings is visible through the existing `Visibility` sources. This is the primary tell in this design. -- **Livery tint** [rule]: tint ship materials by the owner's existing `PrimaryColor`/`SecondaryColor` in `ZoneRenderer`, so a faction reads at visual range. -- **Earned HUD identity** [rule]: show the faction's `ShortName` and color on a target indicator only once the contact's gear is revealed (`FireControl.IsRevealed` at `TargetGearInfoThreshold`). Before that the marker stays anonymous, as [[Visual and Sensory Direction]] requires. - -Hull art per faction is the long pole; the visual sections below describe what each hull should say, consistent with [[Brainstorming/Faction Ship Concept Prompts|Faction Ship Concept Prompts]]. - -### Narrative Hooks - -Ink location stories play at docked stations through `LocalMenu`, and `StoryProcessor` can place them by `FactionOwner`, `FactionPresent`, and security tags, although its call is commented out. `Entity.SetMessage` can carry a one-line bark. Hooks below are of two kinds: **barks** (one line when a ship detects you, used as the hail before `grace` runs out) and **dock stories** (short repeatable Ink situations at a faction's stations). No quest chains. +*Moved verbatim, except one same-page link, to the Lever Map section of `docs/faction-play-design-record.md`, a design record and not lore.* ## The Factions @@ -360,7 +291,7 @@ Ewan Hart has no combat quirk, and none is invented. Its ships are tractors and ### Brands Without Flags -- **Corriedales** is a Lucent family brand, not a flag. Its weapons appear on cheap Lucent hulls. No quirk of its own; see [[#Cut List]]. +- **Corriedales** is a Lucent family brand, not a flag. Its weapons appear on cheap Lucent hulls. No quirk of its own; see the Cut List in `docs/faction-play-design-record.md`. - **Orbital Forge** is Aya's supplier through allegiance, with no record proposed. ## Quirk Test @@ -481,50 +412,37 @@ A player crossing between two factions' space should see the change before any i ## Cut List -Quirks considered and cut, because the player would not do anything differently: - -- **Corriedales matching-set bonus.** No set mechanic exists, and collecting a set changes no decision in a fight. Corriedales stays a brand on Lucent's cheap hulls. -- **Lucent aggression scaled by player fame.** There is no fame or reputation state to read. Replaced by the one-at-a-time rule, which the player can see and use. -- **Cryonix license inspection at docking.** No inspection lever exists, and without one the player cannot tell it is happening. Revisit with reputation. -- **Ewan Hart combat behavior.** Anything invented would be decoration; Ewan Hart is expressed through resources only. -- **NiteLife burst-then-drain weapons as a behavior quirk.** Too close to Lucent's burst window; two factions teaching the same lesson dilutes both. NiteLife keeps the reservoir and the tight leash. -- **Zhestokost reporting refusals to the next zone.** Needs standing to propagate across zones. Kept as an *after reputation* note, not a headline. +*Moved verbatim to the Cut List section of `docs/faction-play-design-record.md`, a design record and not lore.* ## Lore Change Proposals +*Staying here for now. Each accepted proposal moves to its faction note only once its ruling exists in the mind; until the ruling ids are posted, the text stays on this page.* + These bend or extend the faction notes. Each needs the setting owner's ruling: 1. **Miss Terri's as a territorial faction at the strange edge of the map.** The vault has no Miss Terri's note and no territory for it. The legacy game makes it the protagonist faction, and the 2021 design discussion placed it furthest into pseudospace ("colonizing Wonderland"). Proposal: a Miss Terri's note establishing it as a settler power at the edge of stable space. **Ruling, Nibu, 2026-11-05: cut from the agents' side.** The agents do not write the Miss Terri's settler-power note and propose no territory for it; whether Miss Terri's becomes a settler power is left to Emily. The Miss Terri's flag entry above stays a design sketch on the legacy game's own account of the faction, not a lore claim. + Ruling id, as stated by Nibu on 2026-11-09: `aetheria-release:ruling:lore-miss-terris-no-agent-settler-note`. 2. **Finch sells tracks.** The lore gives Finch passive sensing and the Quiet Sense hunter, not a trade in other people's positions. Proposal: Finch sensor operators sell track data as a service, consistent with its pattern of turning a capability into a continuing dependency. **Ruling, Nibu, 2026-11-06 (#swarm): deferred.** Out of the demo: Finch is not in the demo cast (`DemoTerminus.cs:10-17`). Sharing inside a faction already exists, because `PilotView` is the union of one side's sensors (`Flight.cs:12-13`). Selling tracks across sides would need `Faction.Relations` (a reserved key, `Corporations.cs:59`; TODO at `Entity.cs:1303`) and a played Finch. The mechanism names this note used for it, `WatchForGrudge` and `share_track`, do not exist in the code, and `Faction.Personality` has no readers. The lore does not forbid the bend; whether it is canon is the setting owner's call. No mechanic is claimed, and the Finch entry's behavior text above stays a proposal. + Ruling id, as stated by Nibu on 2026-11-09: `aetheria-release:ruling:lore-finch-track-sales-deferred`. 3. **Minor powers hold company space in game.** NiteLife, Lightsail, Alakrita, R&D, Ewan Hart, and DME own zones in the legacy game, while the lore withholds Mega status from them. Proposal: in-game territory for a minor power means company settlements under someone else's wider order, shown through low security and few warships. This keeps the Mega distinction intact. + **Ruling, Nibu, 2026-11-09, as stated: company settlements, not sovereign territory.** + Ruling id, as stated by Nibu on 2026-11-09: `aetheria-release:ruling:lore-minor-power-territory-is-company-settlement`. 4. **Megiddo's fleet moves between runs.** Consistent with the lore's mobile fleets; recorded here because the game places it in a different zone each run. **Ruling, Nibu, 2026-11-05: accepted, text only, post-demo.** The reading is recorded in the Megiddo note ([[Worldbuilding/Post-Elysium/Factions/Megiddo|Megiddo]]); nothing is built or demoed for it. Where it would attach: the Megiddo faction record that `MinorPowerFactionsCommand.cs:25-39` authors (GameCult/Aetheria, AetherDb tooling, read by Nibu at master a4be037a4). The move is still text only and post-demo; no mechanic is claimed. + Ruling id, as stated by Nibu on 2026-11-09: `aetheria-release:ruling:lore-megiddo-fleet-moves-text-only`. 5. **Lucent's one-at-a-time duel.** A playable reading of Lucent's spectacle, not stated in the lore. Accepted by the operator on 2026-10-03, with an addition: their weakness is their need for glory, so they can be baited into a duel "like a Clanner in Battletech" (see the Lucent weakness above). **Ruling, Nibu, 2026-11-05: accepted, with this line: the duel is spec'd but not played.** It is spec'd, not in the build, until faction-play-2 lands. It is a design only; no demo copy, trailer text, store text or tutorial hint may claim that Lucent duels, fights one at a time, or can be baited. + Ruling id, as stated by Nibu on 2026-11-09: `aetheria-release:ruling:lore-lucent-duel-spec-not-played`. ## Implementation Order -Ordered by how much distinct play each step unlocks, using only the levers above: - -1. ~~**Read `Faction.Personality` in `Zone.CreateAgent`** and move `AgentRangeExponent` and `AgentMinHitProbability` onto it.~~ **Superseded, not pending.** Range and fire discipline now live in `FactionDoctrine` and `RoleDoctrine` (`Doctrine.cs:28-74`), reached through `Faction.Doctrine` (`Corporations.cs:62-63`) and applied in `Zone.cs:318-326`. `Faction.Personality` (`Corporations.cs:28-29`) has no readers; it is not the live path. [code references as of the 2026-11-05 check] -2. **The four tutorial states** (follow, drift cold, flee, sweep), with the break-off and leash transitions. These carry Zhestokost's tender, AU's haulers, Lightsail, Alakrita, Finch, Cryonix, and Adrasteia. They are shared with the tutorial work, so they are bought once. -3. **Hail barks through `Entity.SetMessage`** with `grace`. Every faction gets a voice at first contact. -4. **Earned HUD identity and livery tint.** Factions become visible without new art. -5. **`Relations` on `Faction`** (if the fork goes to B). Turns on every cross-faction dynamic. -6. **Faction records** for Sol Dominion, Aya, Navigators, Pirates, Megiddo, Cryonix, and Framgång, with their products. -7. **The damage-type rule** for corrosion and cascade. -8. **Turn on `StoryProcessor` placement** for dock stories constrained by `FactionOwner`. - -Smallest proof: three factions (Zhestokost, Lucent, AU) in one run with steps 1 to 3. The proof passes when a playtester, without being told, can describe how each faction fights and what they did differently to beat it. +*Moved verbatim to the Implementation Order section of `docs/faction-play-design-record.md`, a design record and not lore.* ## Sources -- EVE University Wiki, [NPC damage types](https://wiki.eveuniversity.org/NPC_damage_types) and [Ratting](https://wiki.eveuniversity.org/Ratting). -- Fractal Softworks, [Blueprints, Doctrine, and Production](https://fractalsoftworks.com/2018/02/12/blueprints-doctrine-and-production/) (not retrievable during this pass; cited from prior knowledge), and the forum thread [Some factions' doctrines seem incompatible with their ship rosters](https://fractalsoftworks.com/forum/index.php?topic=31252.0). -- Frontier forums, [Powerplay 2.0 update thread](https://forums.frontier.co.uk/threads/elite-dangerous-powerplay-2-0-update.630423/), and the [Powerplay wiki entry](https://elite-dangerous.fandom.com/wiki/Powerplay). -- GamesRadar, [Shadow of Mordor's Nemesis system](https://www.gamesradar.com/shadow-mordor-nemesis-system-amazing-how-works/). -- Mount & Blade, Escape Velocity, Freelancer, and RimWorld are cited from play knowledge; their primary sources were not re-fetched for this pass. +The sources for the Prior Art section moved with it to `docs/faction-play-design-record.md`. + - Archived GameCult design discussion (2021–2022): faction placement by strangeness, Miss Terri's as protagonist and Zhestokost as antagonist, loadouts weighted by allegiance and proximity, Adrasteia's gear reached through narrative. diff --git a/docs/faction-play-design-record.md b/docs/faction-play-design-record.md new file mode 100644 index 0000000..d749a72 --- /dev/null +++ b/docs/faction-play-design-record.md @@ -0,0 +1,119 @@ +# Faction Play: Design Record + +Design and implementation record split out of [[Faction Play]] on 2026-11-09 on Nibu's ruling (#minds). This is not lore and not canon: it holds the prior-art survey, the lever map against the legacy Unity tree, the list of cut quirks, the implementation order, and the Prior Art sources. The sections below are moved verbatim, with one exception: the same-page link to the Inter-Faction Relations fork under Relationships now names [[Faction Play]], so it still resolves. This record is not published (the site builds from `Aetheria/` only), so its other wikilinks do not resolve from `docs/`; read them as names of vault pages. + +## Prior Art + +Established games that made factions play differently, what worked, and what failed: + +- **EVE Online, NPC pirate factions.** Each pirate faction deals a consistent damage profile and uses one kind of electronic warfare: Guristas jam, Serpentis dampen sensors, Angels paint targets, Blood Raiders neutralize capacitors. Players learn the pairing and refit before they undock. *Worked:* one stable quirk per faction, learnable and worth refitting for. *Failed:* the quirk lives entirely in the fitting screen; the NPCs themselves are static and farmable, so faction knowledge became a spreadsheet rather than a reading of behavior. Lesson: pair the loadout quirk with a behavior quirk the player sees in flight. +- **EVE security status and CONCORD.** Space is graded by how reliably force punishes crime, and players change route and conduct by grade. *Worked:* consequence attached to place is learnable and shapes navigation. The legacy `SecurityLevel { Open, Secure, Critical }` is the same idea at station scale. +- **Starsector faction doctrine.** Every faction's fleets come from one AI, varied by authored doctrine: aggression, ship size, quality against numbers, the mix of warships, carriers, and phase ships, plus the faction's blueprint roster. *Worked:* cheap and strong; one AI with per-faction parameters makes fleets read and fight differently. *Failed, per player reports:* some doctrines contradict the rosters they fly (an aggressive doctrine on fragile ships), which reads as a bug rather than a character. Lesson: behavior parameters and loadout must come from the same operating logic. This is the closest model for the legacy tree, because `Faction.Personality` is already a per-faction parameter dictionary that nothing reads. +- **Elite Dangerous Powerplay.** Powers are expressed mostly as contribution meters and merit activities. Both the original and the 2024 rework drew criticism that powers feel like grind targets: the player optimizes merit per hour and rarely meets a power's character in what its ships do. Lesson: a faction expressed as a progress bar is not a faction in play. +- **Mount & Blade.** Each kingdom's troop tree forces a counter: horse archers on open steppe, shield walls against archers, heavy cavalry needing room to charge. *Worked:* the loadout is the faction, and the player changes army composition and terrain choice to face it. +- **Escape Velocity.** Governments carry ally and enemy lists and per-government legal records; a crime against one government changes how its allies treat you. *Worked:* a small relationship table produces border politics without scripting. (From play knowledge; the primary documentation was not re-fetched for this pass.) +- **Freelancer.** Lawful houses patrol trade lanes and scan cargo for contraband; a reputation web ties factions together. *Worked:* the patrol scan is a learnable ritual that changes cargo and route choice. *Failed:* the web made allegiance feel arbitrary, and bribes reduced it to arithmetic. (From play knowledge.) +- **RimWorld.** Factions arrive differently: drop pods, sieges, sappers, mechanoid clusters. The player builds different defenses for each. *Worked:* the arrival pattern is the tell and the counter is a material choice. (From play knowledge.) +- **Shadow of Mordor, Nemesis system.** Individual orcs carry strengths, fears, scars, and memories of the player. *Worked:* named enemies who remember produce stories. *Failed:* enemies progress only through player deaths or explicit time skips, and the content cost of traits is high. Lesson for Aetheria: use it narrowly, for pirate crews, with a name, one rolled quirk, and a grudge, and nothing more. + +The shared lesson: **parameters on one AI, a loadout that agrees with the parameters, and a consequence tied to place.** Every faction below is built that way. + +## Lever Map + +What exists on the legacy tree, and how each lever is used here. Tags in the faction sections say which kind of work a quirk needs: + +- **[data]** Authoring only: faction fields, `Personality` weights, `Allegiance`, product roles, settings. +- **[state]** A state or transition on the existing `Agent`/`BaseState` machine. The tutorial sketch (`docs/tutorial-script-sketch.md`) already needs four of these: follow or escort, drift cold, flee, and sweep. This design reuses exactly those four and adds no others. +- **[rule]** A small rule in an existing owner, named where used. +- **[content]** A product, hull, or Ink story. + +### NPC behavior + +Every NPC ship today is a `Minion` (`SS/Agents/Minion.cs`) that patrols orbits and enters `CombatState` against the first visible enemy. `CombatState` already picks a preferred range from its weapons and aims at the target's most dangerous revealed weapon. Its tuning is global in `GameplaySettings`. + +The design moves that tuning onto the faction and gives `Minion` a small vocabulary of transitions, all read from `Faction.Personality` (a float per `PersonalityAttribute`, already on the record and unread). `Zone.CreateAgent` is where the profile is applied. Each attribute is a `PersonalityAttribute` record; the multi-way ones (`engage_on`, `target_priority`) are encoded as float bands. The attribute vocabulary: + +| Attribute | Meaning | Consumer | +|---|---|---| +| `engage_on` | Engage on detection, on identification (gear revealed), only when provoked (grudge), or on trespass (presence not permitted) | `Minion` target acquisition [state] | +| `preferred_range` | Per-faction replacement for the global `AgentRangeExponent` | `CombatState.SampleDps` [data] | +| `fire_discipline` | Per-faction `AgentMinHitProbability`: spray or wait for the sure shot | `FireControl.AgentFires` [data] | +| `target_priority` | Weapons (today's behavior), drives, cargo, or stations | `TrySelectTargetItem` [rule] | +| `break_off_hull` | Durability fraction at which the ship flees | flee [state] | +| `break_off_heat` | Hull temperature fraction at which the ship disengages or drifts cold | flee or drift cold [state] | +| `break_off_ammo` | Ammunition or charge fraction at which the ship returns to its anchor | follow [state] | +| `leash` | Maximum pursuit distance from an anchor (station, tender, or route) | `CombatState` exit [state] | +| `pack` | How many same-faction ships may engage one target at once; others hold | target acquisition [rule] | +| `share_track` | One ship's detection or grudge propagates to its faction in the zone | `WatchForGrudge` [rule] | +| `answer_call` | Respond to a same-faction or allied ship's combat or distress within range | follow [state] | +| `jettison` | Drop cargo when threatened | flee [state] | +| `quiet_until_commit` | Radiators off and thrust minimal until firing | drift cold [state] | +| `grace` | Seconds between detection and firing, during which a hail bark plays | `Entity.SetMessage` [rule] | + +Sticky grudges (`Entity.WatchForGrudge`) and stance gating already exist and carry most "memory" below. Grudges clear when the entity leaves the zone; that limit is used deliberately. + +### Relationships + +Player standing (`Galaxy.FactionRelationships`) is generated as Neutral and never changes, and reputation is out of the current scope (`docs/three-gates-scope.md`). NPC factions are Neutral to each other (`Entity.GetFactionRelationship`, marked `// TODO: Inter-faction relationships`). The design is built so that **every headline quirk works with relationships frozen**, carried by grudges, security levels, and stance. Quirks that need standing to move are marked *after reputation*. + +Cross-faction dynamics need NPC factions to dislike each other. See [[Faction Play#Fork: Inter-Faction Relations]]. + +### Loadouts + +`LoadoutGenerator` picks products weighted by `Faction.Allegiance` over the distance to each manufacturer's headquarters. Product roles carry a mean and a deviation, which is already how the content pass encodes brand character (`docs/content-batch-one.md`: Zhestokost's 100-kelvin hull plateau, Finch's variance, Megiddo's no-weak-part shield). Ammunition is real: `InstantWeapon` draws magazines from cargo through `AmmoType`. So a faction's loadout identity is `Allegiance` (whose gear) plus the roles of its own products (how well made, how consistent). + +Gap: `DamageType` (Kinetic, Corrosive, Electric, Thermal, Optical, Ionizing) is carried on every shot and read by nothing. Two quirks below (Miss Terri's corrosion, Death Monkey cascade) want one **[rule]** in `FireControl`: a damage type modifies what it damages. Both have fallbacks that work without it. + +### Resource Distribution + +Mining yields nothing yet (`Zone.MineAsteroid` is a TODO; `BodyData.Resources` is never written). Today, resource distribution is carried by: station stock (each station holds 16 products drawn by the owner's allegiance), the cargo NPC ships carry and drop on death, the loot drop rate, station count and security level per zone, the owner's `InfluenceDistance`, and which factions appear as neutral wanderers. The faction sections use these. When `docs/faction-territory-target.md` lands (sectors and stations with supply-chain roles and a readable territory shape), the same per-faction design applies to roles; each faction section names its shape. + +### Visuals + +In space, faction identity is invisible today: hull prefab is the only visual difference, the project has two ship prefabs, and faction colors render only on the sector map. Three levers are available without a new system: + +- **Signature behavior** [state/data]: what a faction does with radiators, thrust, and active pings is visible through the existing `Visibility` sources. This is the primary tell in this design. +- **Livery tint** [rule]: tint ship materials by the owner's existing `PrimaryColor`/`SecondaryColor` in `ZoneRenderer`, so a faction reads at visual range. +- **Earned HUD identity** [rule]: show the faction's `ShortName` and color on a target indicator only once the contact's gear is revealed (`FireControl.IsRevealed` at `TargetGearInfoThreshold`). Before that the marker stays anonymous, as [[Visual and Sensory Direction]] requires. + +Hull art per faction is the long pole; the visual sections below describe what each hull should say, consistent with [[Brainstorming/Faction Ship Concept Prompts|Faction Ship Concept Prompts]]. + +### Narrative Hooks + +Ink location stories play at docked stations through `LocalMenu`, and `StoryProcessor` can place them by `FactionOwner`, `FactionPresent`, and security tags, although its call is commented out. `Entity.SetMessage` can carry a one-line bark. Hooks below are of two kinds: **barks** (one line when a ship detects you, used as the hail before `grace` runs out) and **dock stories** (short repeatable Ink situations at a faction's stations). No quest chains. + +## Cut List + +Quirks considered and cut, because the player would not do anything differently: + +- **Corriedales matching-set bonus.** No set mechanic exists, and collecting a set changes no decision in a fight. Corriedales stays a brand on Lucent's cheap hulls. +- **Lucent aggression scaled by player fame.** There is no fame or reputation state to read. Replaced by the one-at-a-time rule, which the player can see and use. +- **Cryonix license inspection at docking.** No inspection lever exists, and without one the player cannot tell it is happening. Revisit with reputation. +- **Ewan Hart combat behavior.** Anything invented would be decoration; Ewan Hart is expressed through resources only. +- **NiteLife burst-then-drain weapons as a behavior quirk.** Too close to Lucent's burst window; two factions teaching the same lesson dilutes both. NiteLife keeps the reservoir and the tight leash. +- **Zhestokost reporting refusals to the next zone.** Needs standing to propagate across zones. Kept as an *after reputation* note, not a headline. + +## Implementation Order + +Ordered by how much distinct play each step unlocks, using only the levers above: + +1. ~~**Read `Faction.Personality` in `Zone.CreateAgent`** and move `AgentRangeExponent` and `AgentMinHitProbability` onto it.~~ **Superseded, not pending.** Range and fire discipline now live in `FactionDoctrine` and `RoleDoctrine` (`Doctrine.cs:28-74`), reached through `Faction.Doctrine` (`Corporations.cs:62-63`) and applied in `Zone.cs:318-326`. `Faction.Personality` (`Corporations.cs:28-29`) has no readers; it is not the live path. [code references as of the 2026-11-05 check] +2. **The four tutorial states** (follow, drift cold, flee, sweep), with the break-off and leash transitions. These carry Zhestokost's tender, AU's haulers, Lightsail, Alakrita, Finch, Cryonix, and Adrasteia. They are shared with the tutorial work, so they are bought once. +3. **Hail barks through `Entity.SetMessage`** with `grace`. Every faction gets a voice at first contact. +4. **Earned HUD identity and livery tint.** Factions become visible without new art. +5. **`Relations` on `Faction`** (if the fork goes to B). Turns on every cross-faction dynamic. +6. **Faction records** for Sol Dominion, Aya, Navigators, Pirates, Megiddo, Cryonix, and Framgång, with their products. +7. **The damage-type rule** for corrosion and cascade. +8. **Turn on `StoryProcessor` placement** for dock stories constrained by `FactionOwner`. + +Smallest proof: three factions (Zhestokost, Lucent, AU) in one run with steps 1 to 3. The proof passes when a playtester, without being told, can describe how each faction fights and what they did differently to beat it. + +## Sources + +Sources for the Prior Art section, moved from Faction Play. + +- EVE University Wiki, [NPC damage types](https://wiki.eveuniversity.org/NPC_damage_types) and [Ratting](https://wiki.eveuniversity.org/Ratting). +- Fractal Softworks, [Blueprints, Doctrine, and Production](https://fractalsoftworks.com/2018/02/12/blueprints-doctrine-and-production/) (not retrievable during this pass; cited from prior knowledge), and the forum thread [Some factions' doctrines seem incompatible with their ship rosters](https://fractalsoftworks.com/forum/index.php?topic=31252.0). +- Frontier forums, [Powerplay 2.0 update thread](https://forums.frontier.co.uk/threads/elite-dangerous-powerplay-2-0-update.630423/), and the [Powerplay wiki entry](https://elite-dangerous.fandom.com/wiki/Powerplay). +- GamesRadar, [Shadow of Mordor's Nemesis system](https://www.gamesradar.com/shadow-mordor-nemesis-system-amazing-how-works/). +- Mount & Blade, Escape Velocity, Freelancer, and RimWorld are cited from play knowledge; their primary sources were not re-fetched for this pass.