The dock call: HaulRun (order, leg, CanCall, Call), PilotCommand.Call, and an undocked hauler re-admitted piloted with its haul task derived in CreateAgent

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-11-28 14:09:40 +01:00
commit 579a96cb9e
4 changed files with 69 additions and 3 deletions

View file

@ -327,7 +327,7 @@ public class Zone
_flights[key] = flight = new Flight(ship.Faction?.Doctrine, _itemManager.GameplaySettings);
var id = NextAgentId();
var agent = new Minion(ship, flight.Combatant) { Id = id };
flight.Join(agent, stated ?? PatrolCircuit(id));
flight.Join(agent, stated ?? (AgentTask) HaulRun.TaskOf(ship) ?? PatrolCircuit(id));
return agent;
}