Flight: a track any member made friendly is out of the picture; pins for the s4 findings

The flight builds the picture, so it is where per-member friendly overrides meet; the track is dropped there. New
pins: a tuned doctrine survives doctrine-catalog apply, the follower's velocity match and pull at scale, compliance on
a diagonal, the hail speaker and engaged pick off-axis. Not built or run yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-17 00:21:43 +02:00
commit 2bb08a91ee
2 changed files with 145 additions and 26 deletions

View file

@ -60,7 +60,10 @@ public class Flight
public void Update(float dt)
{
_time += dt;
var picture = _members.SelectMany(m => m.Agent.Ship.VisibleEnemies).Distinct().ToList();
// A track any member has made friendly (a truce override) is not the flight's to engage or follow, though a flightmate
// still senses it as hostile: the overrides are per member, so the picture is where they meet.
var picture = _members.SelectMany(m => m.Agent.Ship.VisibleEnemies).Distinct()
.Where(e => !_members.Any(m => m.Agent.Ship.IffOverride(e) == false)).ToList();
foreach (var gone in _tracks.Keys.Where(t => !picture.Contains(t)).ToList()) _tracks.Remove(gone);
foreach (var entity in picture)