Scenario fits are stocked unless the scenario authors their cargo

Materialize takes stockAmmunition (default true: boss, console ship). ScenarioStage
passes false and stocks at the end of staging only the fitted entities whose cargo
the scenario did not author with Cargo, so a scenario that names what a hold
carries gets exactly that. A packed (saved) fit is never stocked.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Nibu 2026-11-11 03:40:33 +00:00
commit ded74e8b10
4 changed files with 32 additions and 4 deletions

View file

@ -44,6 +44,7 @@ public static class RunStart
if (!stage.PlayerPlaced)
failures.Add("player: the scenario places no player");
if (failures.Count > reported) return null;
stage.StockUnauthoredAmmunition();
var player = stage.PlayerShip;
player.IsPlayerShip = true;