From cef4f0a746d4597966e0edd499069abb8f49306b Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 14 Oct 2026 04:06:25 +0200 Subject: [PATCH] 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 --- Assets/Scripts/ServerShared/Scenarios/FusedRounds.cs | 4 ++-- tests/Aetheria.Shared.Tests/FireControlTests.cs | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/ServerShared/Scenarios/FusedRounds.cs b/Assets/Scripts/ServerShared/Scenarios/FusedRounds.cs index 83734ad1e..e0a8c029f 100644 --- a/Assets/Scripts/ServerShared/Scenarios/FusedRounds.cs +++ b/Assets/Scripts/ServerShared/Scenarios/FusedRounds.cs @@ -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); diff --git a/tests/Aetheria.Shared.Tests/FireControlTests.cs b/tests/Aetheria.Shared.Tests/FireControlTests.cs index 4668ed178..459332ab4 100644 --- a/tests/Aetheria.Shared.Tests/FireControlTests.cs +++ b/tests/Aetheria.Shared.Tests/FireControlTests.cs @@ -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);