Retire the prelude and the tutorial: the cast, the scenario and the save own what they bundled
Galaxy.IsPrelude, SavedGame.IsTutorial (key 11 retired), TutorialGalaxy, TutorialGenerationSettings, its Settings.asset block and the
dead GalaxyStage/Galaxy constructor parameters (PlayerSettings, narrative directory) are gone. The rules they bundled move to their
owners: GalaxyCast.InfluenceScale (demo and test cast .5, main 1) carried by Galaxy and saved as SavedGame key 17, so a pre-cut run is
refused at Continue with a message; Scenario.EntranceStation (MainGalaxy false) decides the forced entrance station instead of the
galaxy; GalaxyStage.Cast(cast) replaces Prelude. The six arenas that read the authored cast generate DemoTerminus.Cast; Development
lists only Main Galaxy. TutorialBackgroundSettings is renamed CastBackgroundSettings in the asset YAML. Tests build their galaxy from
TestCasts.Wide and Background, the retired block's values, so every test galaxy is unchanged.
Suite at 8b2d1f544: 4 red (font credits, chunk info, trojan swarm, two-ai digest, Windows). After: the same 4, digest unchanged.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8b2d1f5442
commit
40a5457c9e
54 changed files with 334 additions and 321 deletions
|
|
@ -42,8 +42,7 @@ public class SavedGame
|
|||
[Key(10)]
|
||||
public SavedActionBarBinding[] ActionBarBindings;
|
||||
|
||||
[Key(11)]
|
||||
public bool IsTutorial;
|
||||
// Key(11): retired, do not reuse (a retired run-mode flag)
|
||||
|
||||
// Read only by a save written before Standings: its entries follow galaxy.Factions order, not Factions order, so
|
||||
// Galaxy trusts it only when the two orders cannot differ (see Galaxy's save constructor).
|
||||
|
|
@ -68,6 +67,11 @@ public class SavedGame
|
|||
// null in a save written before it, which then reads Relationships.
|
||||
[Key(16)]
|
||||
public List<SavedStanding> Standings;
|
||||
|
||||
// Galaxy.InfluenceScale: every zone generated after Continue reads it (ZoneGenerator's factionPresence). Written only
|
||||
// by RunSave.Capture and read only by Galaxy's save constructor, which refuses a save without one (0).
|
||||
[Key(17)]
|
||||
public float InfluenceScale;
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
|
|
@ -122,7 +126,7 @@ public static class RunSave
|
|||
CurrentZoneEntity = currentZone.Entities.IndexOf(currentEntity),
|
||||
Entrance = Array.IndexOf(galaxy.Zones, galaxy.Entrance),
|
||||
Exit = Array.IndexOf(galaxy.Zones, galaxy.Exit),
|
||||
IsTutorial = galaxy.IsPrelude,
|
||||
InfluenceScale = galaxy.InfluenceScale,
|
||||
ActionBarBindings = actionBar,
|
||||
Credits = credits,
|
||||
Seed = galaxy.Seed
|
||||
|
|
|
|||
Loading…
Reference in a new issue