Fused Rounds: Fragile sits inside the DeathCluster's effective range; the AI test refreshes the gun's stats
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ca810b9b1a
commit
ac1a5d29ed
2 changed files with 5 additions and 3 deletions
|
|
@ -382,7 +382,9 @@ public sealed class FireControlTests : IDisposable
|
|||
var agent = zone.Agents.Single();
|
||||
var state = typeof(Agent).GetField("_currentState", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).GetValue(agent);
|
||||
Assert.True(state is CombatState, $"the agent is in {state?.GetType().Name}");
|
||||
// The state sampled when the Minion was built, before any weapon stat was evaluated; sample again over the evaluated ones.
|
||||
// The state sampled when the Minion was built, over the fixture's first stats; refresh the gun's stats from the data this
|
||||
// test authored, then sample again.
|
||||
typeof(Weapon).GetMethod("UpdateStats", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).Invoke(shooter.Weapons.Single(), null);
|
||||
typeof(CombatState).GetMethod("SampleDps", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).Invoke(state, null);
|
||||
var optimum = (float) typeof(CombatState).GetField("_optimumRange", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).GetValue(state);
|
||||
Assert.True(optimum >= 500f - 1000f / 32f && optimum <= 500f + 1000f / 32f, $"optimum range {optimum}");
|
||||
|
|
|
|||
Loading…
Reference in a new issue