// Economy content, batch 1: the munitions chain. Rounds (the Ammo commodity ballistic weapons draw), the energetics behind them,
// and the parts that fill the roles of ballistic guns, missile racks and the mine launcher: barrel, feed mechanism, warhead,
// thruster and dispenser. Zhestokost is the faction this chain is written around (its arsenal commissions plan foundry output,
// ammunition and transport together), so it is the faction that places the chain's station kinds until other factions' batches
// place them too.
//
// Goods owned by other chains are named here only as interface goods: written when no record holds the key yet, never
// overwritten, and given no recipe. Their own batch writes them unconditionally and owns their recipe, so the batch order
// does not decide their content.
publicsealedclassMunitions:EconomyBatch
{
privateEconomyAuthor_a;
publicoverridevoidAuthor(EconomyAuthorauthor)
{
_a=author;
// The kind this chain adds. Energetics and loading are sited apart from other industry because a loading accident must not
// take a yard with it; that separation is the reason it is its own kind rather than a line in a fabrication station.
_a.Put(newStationKindData
{
Name="Munitions Works",
Description="Makes energetics (nitrocellulose, propellant, high explosive), loads rounds, primers, fuzes, warheads and rocket motors; sited apart from other industry so an accident takes only itself.",
StandIns=newList<StationKindStandIn>()
},StationKindData.KeyOf("munitions-works"));
// Zhestokost has no station model of any kind yet. Its first planned model is the supply depot (ruling faction-station-models),
// so its industrial kinds stand in on the depot until their own models land. One hop: depot itself has no Zhestokost stand-in.
// Interface goods: named by this chain, owned by another.
varsteel=Interface("steel","Steel","Rolled and drawn structural steel: bar, sheet and billet.",1f,30,simple:true);
varammonia=Interface("ammonia","Ammonia","Ammonia ice and gas skimmed from cold bodies; the nitrogen in fertiliser and in every explosive.",0.6f,15,simple:true);
varoxygen=Interface("oxygen","Oxygen","Liquid oxygen, cracked from water ice or recovered from life support.",1.1f,8,simple:true);
varpulp=Interface("cellulose-pulp","Cellulose Pulp","Washed cellulose from algae and bacterial vats: the stock for paper, packaging, fibre and guncotton.",0.8f,20,simple:true);
varactuator=Interface("actuator","Actuator","A sealed motor and gear train that moves a load on command; the same unit opens a hatch, feeds a gun or folds laundry.",2f,400,simple:false);
vardiamond=Existing("Diamond");
varboard=Existing("Circuit Board");
varpotassium=Existing("Potassium");
varmethane=Existing("Methane");
varwater=Existing("Water");
// Chemistry: processing stations, the same acid plants that feed agriculture.
varnitric=Simple("nitric-acid","Nitric Acid","Concentrated nitric acid from ammonia burned over a catalyst and absorbed in water.",1.5f,40);
Recipe(nitric,"processing",300,12,2,
"The towers that burn ammonia into acid make fertiliser for the farms and nitrate for the arsenal. In Zhestokost the arsenal commission sets each season's split, so a hold of acid bound for a munitions works instead of an agriculture station tells you which plan won this year.",
varsaltpetre=Simple("potassium-nitrate","Potassium Nitrate","Saltpetre: potassium neutralised with nitric acid and crystallised.",2.1f,60);
Recipe(saltpetre,"processing",240,8,2,
"Saltpetre is fertiliser, curing salt for ration meat, and the oxidiser in powder and primers. A Zhestokost ration tin carries it twice: once in the meat and once in the gun that guards the convoy.",
varhexamine=Simple("hexamine","Hexamine","White crystalline hexamine from ammonia and methane-derived formaldehyde.",1.3f,50);
Recipe(hexamine,"processing",300,10,2,
"Pressed into tablets, hexamine heats a ration tin in a cold corridor; nitrated, it is the explosive in every warhead. A crate of it is either somebody's winter or somebody's siege.",
varguncotton=Simple("nitrocellulose","Nitrocellulose","Guncotton: cellulose nitrated in mixed acid, washed and kept damp.",1.2f,90);
Recipe(guncotton,"munitions-works",600,20,2,
"Guncotton comes from the same cellulose vats as paper and packaging, and it also makes the lacquer for stencils and decals: a Zhestokost hull's cream serial numbers and the charge behind its guns came out of the same nitrator.",
p.Description="Single-base propellant: nitrocellulose grains with a saltpetre flash reducer. The charge in every ballistic round and the grain in every rocket motor.";
p.Price=160;
});
Recipe(powder,"munitions-works",600,24,3,
"A ballistic gun fires on the energy this powder holds, not on its ship's reactor, so a heavy formation's reach is set by the powder in its tenders. Watch the powder trains and you know how long a siege is planned to last.",
newstring[0],(guncotton,3),(saltpetre,1));
varfill=Simple("explosive-fill","Explosive Fill","Cast high explosive: hexamine nitrated to RDX and melt-cast with a binder.",1.8f,220);
Recipe(fill,"munitions-works",900,30,2,
"Nothing peaceful is worth the risk of storing cast explosive, so a shipment of it in peacetime is news in itself: someone is filling warheads.",
newstring[0],(hexamine,1),(nitric,3));
varprimer=Compound("primer","Primer","Electric percussion primers in a steel cup, packed by the hundred.",0.2f,30);
Recipe(primer,"munitions-works",300,16,10,
"Primers are small, sensitive and made in a hall of their own; a primer-line accident is how a new munitions works learns why its halls stand apart.",
newstring[0],(saltpetre,1),(steel,1));
// Metal parts: fabrication and the state foundry.
varcasing=Compound("shell-casing","Shell Casing","Deep-drawn steel cartridge cases, lacquered against corrosion.",0.5f,40);
Recipe(casing,"fabrication",240,12,4,
"Zhestokost draws its cases from lacquered steel, not brass: brass is scarce and the arsenal plans for volume, not for reloading. A spent case in a wreck field tells you whose guns fired.",
newstring[0],(steel,1));
varslug=Compound("projectile","Projectile","Turned steel slugs with a driving band, sized by calibre.",0.8f,60);
Recipe(slug,"fabrication",240,12,4,
"Each slug carries the tolerance stamp of the foundry that cast its bar, so a quartermaster can trace a bad lot back to a named shift.",
newstring[0],(steel,2));
varammo=Existing("Ammo");
_a.Edit<SimpleCommodityData>("Ammo",a=>a.Description="Crated ballistic rounds: lacquered steel case, steel slug, propellant charge and primer. The round, not the reactor, carries the energy a ballistic gun fires.");
Recipe(ammo,"munitions-works",600,30,2,
"A tender's hold of crated rounds is a battle's energy budget in transit. Zhestokost heavy formations fight as long as their tenders reach them, and cutting that line is how a faster enemy makes them go quiet.",
varforging=Compound("gun-forging","Gun Forging","Rotary-forged barrel blanks, stamped with the pour number.",40f,900);
Recipe(forging,"processing",1800,40,1,
"Barrel blanks come from the same state foundries that pour hull plate. A foundry shipping forgings is one not shipping plate this quarter, and the arsenal commission's quarterly split is a secret worth stealing.",
newstring[0],(steel,4));
varbarrel=Compound("gun-barrel","Gun Barrel","A forged blank bored, rifled and diamond-lined.",35f,2400);
Recipe(barrel,"fabrication",1200,30,1,
"The diamond lining decides how many rounds a barrel takes before its crew swaps it. Zhestokost barrels are built to be swapped in the field, under fire, by crews trained on one pattern for twenty years.",
new[]{"barrel"},(forging,1),(diamond,1));
varautoloader=Compound("autoloader","Autoloader Mechanism","Rammer, feed tray and cycling actuators that take rounds from a magazine into the breech.",30f,2600);
Recipe(autoloader,"fabrication",1200,30,1,
"The feed is the largest moving part of a Zhestokost gun and the first thing its maintainers learn to strip. The Nakovalnya's feed collar exists so a tender can couple straight into these mechanisms.",
new[]{"feed mechanism"},(steel,2),(actuator,2));
varfragCase=Compound("fragmentation-case","Fragmentation Case","A notched steel warhead body that breaks in a set pattern.",6f,120);
Recipe(fragCase,"fabrication",600,14,2,
"The notch pattern is a maker's signature; salvage crews read it in the debris to tell whose warhead it was.",
newstring[0],(steel,2));
varfuze=Compound("fuze","Fuze","A proximity and impact fuze: a circuit board, a safe-arm switch and a booster pellet.",0.6f,300);
Recipe(fuze,"munitions-works",600,18,4,
"Fuzes are where munitions meet electronics. When a region runs short of boards, it shows first as warheads without fuzes stacked in a depot.",
newstring[0],(board,1),(fill,1));
varwarhead=Compound("he-warhead","High-Explosive Warhead","Explosive fill cast into a fragmentation case, fuzed.",12f,1800);
Recipe(warhead,"munitions-works",900,24,1,
"Death Monkey Explosives and the Zhestokost arsenal fill the same warhead from the same chemistry; only the stencils differ, and a recovered warhead's stencil is evidence in a claim.",
new[]{"warhead"},(fill,2),(fragCase,1),(fuze,1));
varmotor=Compound("rocket-motor","Rocket Motor","Propellant cast into a steel case with a nozzle.",10f,1500);
Recipe(motor,"munitions-works",900,20,1,
"The same powder as a gun charge, shaped to burn for seconds instead of milliseconds: missile stocks and gun stocks compete for one powder train.",
Description="Crated guided munitions: a high-explosive warhead mated to a rocket motor on a launch rail. The crate a launcher reloads from; the rounds are real, only the reactor energy of the launch is not."};
"A missile crate is a warhead and a motor in one box, and the box is the arsenal's most counted object: Zhestokost ties each launcher crew's allowance to a serial range, so a cache of loose crates is either a deserter's or a quartermaster's crime.",
"A mine is a warhead with patience. Every blockade that holds a lane for a season is paid for in crates of these, and a convoy captain who finds a lane suddenly quiet counts the hours since the last tender came through.",