EvasionTermTests: the range fixture's guns follow anything, so the evasion tests price evasion and not the catalog's mount rates
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
cdaef1a098
commit
a6484c2599
1 changed files with 4 additions and 0 deletions
|
|
@ -495,6 +495,10 @@ public sealed partial class RunStartTests
|
|||
{
|
||||
shooter.SetTarget(target);
|
||||
shooter.EntityInfoGathered[target] = 1f;
|
||||
// These tests price evasion, not the mount: the catalog's authored rates would price a 150 m/s crosser at 200 m
|
||||
// at nothing, so the guns follow anything here. EvasionTrackingTests sets the rates it means (EvMountRange).
|
||||
foreach (var weapon in shooter.GetBehaviors<Weapon>())
|
||||
weapon.WeaponData.Tracking = new PerformanceStat { Min = float.PositiveInfinity, Max = float.PositiveInfinity };
|
||||
}
|
||||
arena.Update(1f);
|
||||
Assert.True(gunner.VisibleEntities.Contains(target) && lasing.VisibleEntities.Contains(target), "fixture: the shooters see the target");
|
||||
|
|
|
|||
Loading…
Reference in a new issue