Faction play 1: s1/s2 fix batch (Engaged-first anchor, doctrine pins, follow verb)
Flight anchors a blind member on an Engaged track before a nearer Hailing one and keeps its anchor only while nothing outranks it. Doctrine.cs states the trespass rule as the zone owner's permission. DoctrineCatalog matches the faction by exact name and its comment names the landed Pirates record. VerseGrammarCommand gains the follow verb. Tests pin default and authored standoff, Grace against ComplySpeed, nearest hail, the Identified boundary, off-origin direction and anchor choice and switch, the unseen-member rule across geometry, combat from follow, the doctrine-catalog dry run and the turret's global hit threshold. Not yet run: this commit's tests have not been built. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
86c3a94880
commit
04516c72cf
6 changed files with 222 additions and 34 deletions
|
|
@ -4,8 +4,8 @@ using System.Linq;
|
|||
using GameCult.Caching;
|
||||
|
||||
// Authors the starting FactionDoctrine of the four factions the demo cast uses (aetheria-release, faction-play-1).
|
||||
// Tuning is a starting point; the operator adjusts it after play. A faction with no Faction record is named, not
|
||||
// created: the Pirates' record is owed by follow-up pirates-catalog-record, and re-running apply writes them once it lands.
|
||||
// Tuning is a starting point; the operator adjusts it after play. The Pirates record is on master (cut pirates-record);
|
||||
// a faction with no Faction record is named and skipped, and apply is re-run after a cast faction's record lands.
|
||||
public static class DoctrineCatalog
|
||||
{
|
||||
private static readonly (string faction, FactionDoctrine doctrine)[] Table =
|
||||
|
|
@ -39,7 +39,7 @@ public static class DoctrineCatalog
|
|||
var changed = new System.Collections.Generic.List<Faction>();
|
||||
foreach (var (name, doctrine) in Table)
|
||||
{
|
||||
var faction = factions.FirstOrDefault(f => string.Equals(f.Name, name, StringComparison.OrdinalIgnoreCase));
|
||||
var faction = factions.FirstOrDefault(f => f.Name == name);
|
||||
if (faction == null)
|
||||
{
|
||||
output.WriteLine($"{name}: no Faction record, doctrine not written");
|
||||
|
|
|
|||
|
|
@ -37,6 +37,8 @@ public static class VerseGrammarCommand
|
|||
Roles = new[] { Role("target", VerseReferentKind.Faction) } },
|
||||
new VerseVerb { Name = "explore", RenderPath = VerseRenderPath.ShipAction, Description = "The actor surveys a region and charts what is there.",
|
||||
Roles = new[] { Role("region", VerseReferentKind.Place) } },
|
||||
new VerseVerb { Name = "follow", RenderPath = VerseRenderPath.ShipAction, Description = "The actor shadows a ship of the target faction at a standoff, as a flight does while it hails.",
|
||||
Roles = new[] { Role("target", VerseReferentKind.Faction) } },
|
||||
new VerseVerb { Name = "speak", RenderPath = VerseRenderPath.Conversation, Description = "The actor says something to whoever is in earshot. Shown as Aetheria dialogue: face to face when docked, by radio with the speaker's portrait over their ship when undocked.",
|
||||
Roles = new VerseRole[0] },
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue