ConsumableAiTests: the refitted agent senses the prey again
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ff34648371
commit
afc570affd
1 changed files with 4 additions and 0 deletions
|
|
@ -347,6 +347,10 @@ public sealed class ConsumableAiTests : IDisposable
|
|||
fit(s.Agent);
|
||||
s.Zone.Admit(s.Agent, piloted: true); // back in as a pilot: the zone gives it a new Minion and CombatState
|
||||
s.Zone.Agents.Single().Task = null; // no orbits to patrol in the test zone
|
||||
// Deactivation cleared its senses: it senses the prey again, as the sensors would after the jump in.
|
||||
s.Agent.SetIff(s.Prey, true);
|
||||
s.Agent.EntityInfoGathered[s.Prey] = 1f;
|
||||
if (!s.Agent.VisibleEnemies.Contains(s.Prey)) s.Agent.VisibleEnemies.Add(s.Prey);
|
||||
s.Place(30f, 0f);
|
||||
s.Zone.Update(.05f);
|
||||
s.Zone.Update(.05f);
|
||||
|
|
|
|||
Loading…
Reference in a new issue