Tests: the evasion range's target is a written-out Djinni fit
EvRangeLaunch placed stage.Generated("Djinni"), whose fit follows the galaxy; at
CultMath 0.3.0 the generated target gave 95 hits jinking against 78 coasting.
The target now carries an explicit Talaria/cockpit/reactor fit, so the hit
comparison does not depend on generated content.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0ccf02746d
commit
c724001467
1 changed files with 14 additions and 2 deletions
|
|
@ -502,7 +502,7 @@ public sealed partial class RunStartTests
|
|||
}
|
||||
|
||||
// Two shooters on opposite sides of the same target, 200 m away: one with a projectile gun and one with a laser
|
||||
// (a beam's authored velocity is 0, a flight time of zero). The target is the generated Djinni, the catalog's one ship that strafes.
|
||||
// (a beam's authored velocity is 0, a flight time of zero). The target is the fitted Djinni, the catalog's one ship that strafes.
|
||||
private sealed class EvRange
|
||||
{
|
||||
public Zone Arena;
|
||||
|
|
@ -510,6 +510,18 @@ public sealed partial class RunStartTests
|
|||
public Weapon Gun, Laser, GunnerLaser;
|
||||
}
|
||||
|
||||
// The target's fit, written out: the Djinni's own hardpoints filled with the Talaria it is generated with, its
|
||||
// reactor, cockpit and radiators. What the evasion tests price is this ship's strafing, not whatever the generator
|
||||
// rolls for it from the galaxy.
|
||||
private static ScenarioFit EvDjinni(ScenarioStage stage) => stage.Fit("Djinni",
|
||||
("Cockpit 2x2", int2(6, 3), ItemRotation.None), ("Core Power", int2(6, 11), ItemRotation.None),
|
||||
("Talaria", int2(6, 0), ItemRotation.Reversed), ("Talaria", int2(5, 1), ItemRotation.Reversed), ("Talaria", int2(7, 1), ItemRotation.Reversed),
|
||||
("Talaria", int2(4, 4), ItemRotation.CounterClockwise), ("Talaria", int2(4, 11), ItemRotation.CounterClockwise),
|
||||
("Talaria", int2(9, 4), ItemRotation.Clockwise), ("Talaria", int2(9, 11), ItemRotation.Clockwise),
|
||||
("Talaria", int2(6, 14), ItemRotation.None),
|
||||
("Iapyx", int2(1, 4), ItemRotation.Reversed), ("Iapyx", int2(3, 1), ItemRotation.Reversed),
|
||||
("Iapyx", int2(9, 1), ItemRotation.Reversed), ("Iapyx", int2(11, 4), ItemRotation.Reversed));
|
||||
|
||||
private EvRange EvRangeLaunch()
|
||||
{
|
||||
Ship gunner = null, lasing = null, target = null;
|
||||
|
|
@ -517,7 +529,7 @@ public sealed partial class RunStartTests
|
|||
{
|
||||
stage.Player(stage.Bare("Djinni"), float2(-50000, -50000));
|
||||
gunner = stage.Place(EvLonginus(stage, "FastBlast+-", "ColdFire"), float2(0, 0), facing: float2(0, 1)) as Ship;
|
||||
target = stage.Place(stage.Generated("Djinni"), float2(0, 200), facing: float2(0, 1)) as Ship;
|
||||
target = stage.Place(EvDjinni(stage), float2(0, 200), facing: float2(0, 1)) as Ship;
|
||||
lasing = stage.Place(EvLonginus(stage, "ColdFire"), float2(0, 400), facing: float2(0, -1)) as Ship;
|
||||
});
|
||||
var (_, arena, _, failures) = Launch(scenario, Inputs(() => GalaxySeed));
|
||||
|
|
|
|||
Loading…
Reference in a new issue