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:
parent
a2ad79a68e
commit
b3d1e92904
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue