2026-11-11 04:44:31 +00:00
using System.Linq ;
2026-10-11 18:41:48 +02:00
using static CultMath . math ;
using static ItemRotation ;
public sealed class Pursuit : Scenario
{
// The pursuer starts astern, inside the 400 at which VapourCloudTests.ACloudBreaksALockAtRange shows a fresh vent
// cloud breaking a sensor's lock, and well outside the 40 at which AStrongCloseSensorBurnsThrough shows a close
// sensor burning through.
private const float Astern = 300 ;
2026-11-11 07:16:40 +00:00
// Crates each shooter's hold is stocked with: the measured draw over a run (ScenarioAmmunitionRunTests: at most ten minutes of play, and in
// practice the ~250-270 s a shooter holding every gun down lasts before it dies of heat; a pilot who vents heat is unmeasured) plus half again and one where the hold has room. The player laid four crates of Mines and drew
2026-11-11 06:34:46 +00:00
// 33 Ammo; its hold takes 54 crates after five consumables and Mines, so its Ammo stops at 39. The pursuer drew 31 Ammo and one Missiles. A launcher
// that drew under a reload carries the default three crates.
public const int MineCrates = 7 , PlayerAmmoCrates = 39 , PlayerMissileCrates = 3 , PursuerAmmoCrates = 47 , PursuerMissileCrates = 3 ;
2026-10-11 18:41:48 +02:00
public override string Name = > "Pursuit" ;
2026-10-21 19:01:43 +02:00
public override string Id = > "pursuit" ;
2026-10-11 18:41:48 +02:00
public override string Brief = > "A hostile Longinus on your tail; a Mine Launcher fitted, three Coolant Vents and two Thruster " +
"Overdrives aboard. Verify: lay mines in its path, the mine pulses slowly after 2 s, fast when " +
"the hostile is near, explodes 2 s later; vent and coast to lose it; overdrive away." ;
public override uint Seed = > 111 ;
public override bool Ambient = > false ;
public override Galaxy Generate ( GalaxyStage stage ) = > stage . Prelude ( DemoTerminus . Cast ) ;
public override void Stage ( ScenarioStage stage )
{
var layer = stage . Fit ( "Longinus" ,
( "Cockpit 2x2" , int2 ( 2 , 6 ) , None ) ,
( "Large Drive" , int2 ( 1 , 0 ) , Reversed ) ,
( "Large Drive" , int2 ( 3 , 0 ) , Reversed ) ,
2026-10-13 20:29:10 +02:00
( "Rugged Drive" , int2 ( 2 , 14 ) , CounterClockwise ) ,
( "Rugged Drive" , int2 ( 3 , 14 ) , Clockwise ) ,
( "Compact Reactor" , int2 ( 2 , 4 ) , None ) ,
2026-10-16 22:10:58 +02:00
( "parting gift" , int2 ( 0 , 5 ) , None ) , // Mine Launcher
( "Leonid" , int2 ( 5 , 5 ) , None ) , // Swarm Rocket Pod
( "FastBlast+-" , int2 ( 1 , 8 ) , None ) , // Cell Blaster
( "FastBlast+-" , int2 ( 4 , 8 ) , None ) , // Cell Blaster
2026-10-13 20:29:10 +02:00
( "Radiator" , int2 ( 2 , 2 ) , CounterClockwise ) ,
( "Radiator" , int2 ( 3 , 2 ) , Clockwise ) ,
2026-10-16 22:10:58 +02:00
( "not if i see you first" , int2 ( 3 , 10 ) , None ) , // Compact Sensor
( "Panopticon Prime" , int2 ( 1 , 6 ) , Clockwise ) , // Fire Control Array
( "Store-All Plus" , int2 ( 2 , 8 ) , None ) ) ; // Cargo Bay
2026-10-11 18:41:48 +02:00
var pursuer = stage . Fit ( "Longinus" ,
( "Cockpit 2x2" , int2 ( 2 , 6 ) , None ) ,
( "Large Drive" , int2 ( 1 , 0 ) , Reversed ) ,
( "Large Drive" , int2 ( 3 , 0 ) , Reversed ) ,
2026-10-13 20:29:10 +02:00
( "Rugged Drive" , int2 ( 2 , 14 ) , CounterClockwise ) ,
( "Rugged Drive" , int2 ( 3 , 14 ) , Clockwise ) ,
( "Compact Reactor" , int2 ( 2 , 4 ) , None ) ,
2026-10-16 22:10:58 +02:00
( "GT 3K" , int2 ( 0 , 5 ) , None ) , // Guided Missile Launcher
( "GT 3K" , int2 ( 5 , 5 ) , None ) , // Guided Missile Launcher
( "FastBlast+-" , int2 ( 1 , 8 ) , None ) , // Cell Blaster
( "FastBlast+-" , int2 ( 4 , 8 ) , None ) , // Cell Blaster
2026-10-13 20:29:10 +02:00
( "Radiator" , int2 ( 2 , 2 ) , CounterClockwise ) ,
( "Radiator" , int2 ( 3 , 2 ) , Clockwise ) ,
2026-10-16 22:10:58 +02:00
( "not if i see you first" , int2 ( 3 , 10 ) , None ) , // Compact Sensor
2026-10-13 20:29:10 +02:00
( "Capacitor" , int2 ( 1 , 5 ) , None ) ,
2026-10-16 22:10:58 +02:00
( "Panopticon Prime" , int2 ( 1 , 6 ) , Clockwise ) , // Fire Control Array
( "Store-All Plus" , int2 ( 2 , 8 ) , None ) ) ; // Cargo Bay
2026-10-11 18:41:48 +02:00
var player = stage . Player ( layer , float2 ( 0 , 0 ) , facing : float2 ( 0 , 1 ) ) ;
2026-11-11 06:34:46 +00:00
stage . Cargo ( player , new [ ] { "Morning Fog" , "Morning Fog" , "Morning Fog" , "send it" , "send it" }
. Concat ( Enumerable . Repeat ( "Mines" , MineCrates ) ) . Concat ( Enumerable . Repeat ( "Ammo" , PlayerAmmoCrates ) ) . Concat ( Enumerable . Repeat ( "Missiles" , PlayerMissileCrates ) ) . ToArray ( ) ) ;
var hostile = stage . Place ( pursuer , float2 ( 0 , - Astern ) , facing : float2 ( 0 , 1 ) , stance : ScenarioStance . Hostile , piloted : true ) ;
stage . Cargo ( hostile , Enumerable . Repeat ( "Ammo" , PursuerAmmoCrates ) . Concat ( Enumerable . Repeat ( "Missiles" , PursuerMissileCrates ) ) . ToArray ( ) ) ;
2026-10-11 18:41:48 +02:00
}
}