AI test authors the live gun's damage, cooldown and ranges; Fused Rounds keeps its original Fragile position

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-14 04:06:25 +02:00
commit cef4f0a746
2 changed files with 8 additions and 3 deletions

View file

@ -17,9 +17,9 @@ public sealed class FusedRounds : Scenario
public override bool Ambient => false;
// Where everything sits: the player is at the origin facing +z. Ahead lies on the initial aim line, inside every forward
// mount's arc. Fragile is a bare Longinus inside the DeathCluster's effective range (full damage); Close is inside Smoke Proximity's blast radius
// mount's arc. Fragile is a bare Longinus inside the DeathCluster's range; Close is inside Smoke Proximity's blast radius
// (8 m from the ship's centre) and beside the aim line, not across it; Stern is outside every mount's arc.
public static readonly CultMath.float2 Mid = float2(-200, 600), Ahead = float2(0, 300), Fragile = float2(90, 270),
public static readonly CultMath.float2 Mid = float2(-200, 600), Ahead = float2(0, 300), Fragile = float2(140, 420),
Close = float2(6.4f, 4f), Stern = float2(0, -400);
public override Galaxy Generate(GalaxyStage stage) => stage.Prelude(DemoTerminus.Cast);

View file

@ -384,7 +384,12 @@ 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 };
var gun = (InstantWeaponData) live.WeaponData;
gun.Damage = new PerformanceStat { Min = 10, Max = 10 };
gun.Count = new PerformanceStat { Min = 1, Max = 1 };
gun.Cooldown = new PerformanceStat { Min = 1, Max = 1 };
gun.MinRange = new PerformanceStat { Min = 0, Max = 0 };
gun.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);