ConsumableAiTests: the refit waits for the new Minion to reach combat
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f11ec4f676
commit
5a96035563
1 changed files with 2 additions and 2 deletions
|
|
@ -353,9 +353,9 @@ public sealed class ConsumableAiTests : IDisposable
|
|||
s.Agent.EntityInfoGathered[s.Prey] = 1f;
|
||||
if (!s.Agent.VisibleEnemies.Contains(s.Prey)) s.Agent.VisibleEnemies.Add(s.Prey);
|
||||
s.Place(30f, 0f);
|
||||
// The new Minion walks root, patrol, orbit, combat; the tick after it enters combat samples the optimum.
|
||||
for (var i = 0; i < 8 && !(s.State is CombatState); i++) s.Zone.Update(.05f);
|
||||
s.Zone.Update(.05f);
|
||||
s.Zone.Update(.05f);
|
||||
s.Zone.Update(.05f); // the new Minion walks root, patrol, combat
|
||||
}
|
||||
float Optimum() => (float) typeof(CombatState).GetField("_optimumRange", Private).GetValue(s.State);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue