TheAIHoldsAtItsEffectiveRange lets the Online change land between toggles

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-14 03:52:32 +02:00
commit 3ca3fcde7b

View file

@ -381,7 +381,9 @@ public sealed class FireControlTests : IDisposable
zone.Update(1f);
var item = shooter.Weapons.Single().Item;
item.Enabled.Value = false; // an Online change is what makes Combat sample again, over the evaluated stats
zone.Update(.1f);
item.Enabled.Value = true;
zone.Update(.1f);
var agent = zone.Agents.Single();
var state = typeof(Agent).GetField("_currentState", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).GetValue(agent);