TheAIHoldsAtItsEffectiveRange authors the live gun's Range too

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-14 04:00:16 +02:00
commit f03811a40f

View file

@ -384,6 +384,7 @@ public sealed class FireControlTests : IDisposable
// The state sampled when the Minion was built, over the fixture's first stats. Author the live gun's falloff, refresh
// its stats, then sample again.
var live = shooter.Weapons.Single();
live.WeaponData.Range = new PerformanceStat { Min = 1000, Max = 1000 };
live.WeaponData.EffectiveRange = new PerformanceStat { Min = 500, Max = 500 };
live.WeaponData.DamageAtMaxRange = 0f;
typeof(Weapon).GetMethod("UpdateStats", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).Invoke(live, null);