Generated ships carry the crates their weapons reload from; Missiles gets a cargo shape; comment and lore fixes
LoadoutGenerator.GenerateShipLoadout, the one owner of NPC and generated-scenario fitting, now stocks AmmunitionCrates (3) of every distinct AmmoType the ship's weapons draw, after the consumable roll and without touching the random stream; it logs and goes on if no hold takes them. Missiles is authored with Ammo's 1x1 shape and a stack of 5 (a shapeless commodity cannot be stored at all). Tests: generated ships hold exactly the crates they draw and none of an ammunition they do not; a magazine weapon with no AmmoType still reloads free. weapon-ammo moves so RangeFalloff keeps its doc comment; the Munitions comment and lore now match the recipe (warhead and motor, magazines 2 to 288). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
fdbf0b6851
commit
386f29bf0d
5 changed files with 85 additions and 12 deletions
|
|
@ -1105,11 +1105,6 @@ public static class Program
|
|||
return 0;
|
||||
}
|
||||
|
||||
// Damage falloff (aetheria-release, damage-curve-fate-ruled): every gun and beam authors an effective range at a
|
||||
// fraction of its Range (Min and Max scaled, Terms copied so the effective range wears and heats as the range does)
|
||||
// and a damage multiplier at maximum range. Guided weapons, lock weapons and mine layers keep the unauthored
|
||||
// defaults (no falloff). The command upserts every weapon design, which is also what drops the retired damage curve
|
||||
// (key 7) from the stored records. Idempotent: the values are functions of Range alone. Dry run unless "apply".
|
||||
// Read-only: what every weapon design draws per shot (reactor energy, magazine, rounds), so ammunition rulings are audited
|
||||
// against the catalog and not against names.
|
||||
private static int WeaponAmmo()
|
||||
|
|
@ -1123,6 +1118,11 @@ public static class Program
|
|||
return 0;
|
||||
}
|
||||
|
||||
// Damage falloff (aetheria-release, damage-curve-fate-ruled): every gun and beam authors an effective range at a
|
||||
// fraction of its Range (Min and Max scaled, Terms copied so the effective range wears and heats as the range does)
|
||||
// and a damage multiplier at maximum range. Guided weapons, lock weapons and mine layers keep the unauthored
|
||||
// defaults (no falloff). The command upserts every weapon design, which is also what drops the retired damage curve
|
||||
// (key 7) from the stored records. Idempotent: the values are functions of Range alone. Dry run unless "apply".
|
||||
private static int RangeFalloff(string[] args)
|
||||
{
|
||||
var apply = args.Contains("apply");
|
||||
|
|
|
|||
Loading…
Reference in a new issue