The run's credits are saved and seeded: SavedGame key 13, ScenarioStage.Credits, Staged.Credits
RunSave.Capture takes the credits; a scenario may set the starting amount, defaulting to the gameplay settings'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
39b6d28f3a
commit
9651f62ad4
5 changed files with 50 additions and 6 deletions
|
|
@ -12,6 +12,7 @@ public static class RunStart
|
|||
public sealed class Staged
|
||||
{
|
||||
public Ship Player;
|
||||
public int Credits; // the run's starting credits, as the scenario left them
|
||||
public List<Entity> Entities; // what the scenario placed besides the player, in its order
|
||||
}
|
||||
|
||||
|
|
@ -54,7 +55,7 @@ public static class RunStart
|
|||
player.SetIff(placed.Entity, hostile);
|
||||
arena.Admit(placed.Entity, placed.Piloted);
|
||||
}
|
||||
return new Staged { Player = player, Entities = stage.Placed.Select(placed => placed.Entity).ToList() };
|
||||
return new Staged { Player = player, Credits = stage.Credits, Entities = stage.Placed.Select(placed => placed.Entity).ToList() };
|
||||
}
|
||||
|
||||
// A new run's item draws (each lot's quality, each generated fit) come from its galaxy's seed, not the process clock,
|
||||
|
|
|
|||
Loading…
Reference in a new issue