FlightTests: the patrolling fixture starts far from its circuit point

At distance 0 MoveToOrbit hands back to patrol every tick and the patrol
state's unconditional transition wins over the combat interrupt, so no
combat transition was ever reachable in the fixture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-08 18:52:43 +02:00
commit b3d1e92904

View file

@ -551,6 +551,8 @@ public sealed class FlightTests : IDisposable
private Minion PatrollingMinion(Ship ship)
{
// Far from the (unresolved) circuit point, so MoveToOrbit does not hand back to patrol on arrival every tick.
ship.Position = new float3(500, 0, 0);
var minion = new Minion(ship, FactionDoctrine.Default(_items.GameplaySettings).Combatant)
{ Task = new PatrolOrbitsTask { Circuit = new CultRecordKey[1] } };
for (var i = 0; i < 4; i++) minion.Update(.1f);