Demo pressure curve: Galaxy.Antagonist scopes and sources the raids
Galaxy.Antagonist (set by PlaceGate, saved as SavedGame key 18) is the faction whose gate the galaxy has. ZoneGenerator raids a galaxy that has one by DemoPressure's curve, one depth formula e / (e + x) with no clamp, and keeps the nearest faction's patrol for a galaxy that has none. Inside grace the antagonist's stations and turrets pass to the nearest other faction, and the antagonist is no wanderer. LoadoutGenerator.OfferedShipHulls feeds the price ceiling. Cut demo-pressure-curve.r2. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9cfae281ef
commit
0cac368bc2
6 changed files with 138 additions and 12 deletions
|
|
@ -72,6 +72,12 @@ public class SavedGame
|
|||
// by RunSave.Capture and read only by Galaxy's save constructor, which refuses a save without one (0).
|
||||
[Key(17)]
|
||||
public float InfluenceScale;
|
||||
|
||||
// Galaxy.Antagonist: the faction whose gate the galaxy has, the scope and source of the demo's raids, which every zone
|
||||
// generated after Continue reads. Written only by RunSave.Capture and read only by Galaxy's save constructor; unset means
|
||||
// no gate antagonist, set but not one of Factions refuses Continue. Keyed by the record, as Standings is.
|
||||
[Key(18)]
|
||||
public CultRecordRef<Faction> Antagonist;
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
|
|
@ -127,6 +133,7 @@ public static class RunSave
|
|||
Entrance = Array.IndexOf(galaxy.Zones, galaxy.Entrance),
|
||||
Exit = Array.IndexOf(galaxy.Zones, galaxy.Exit),
|
||||
InfluenceScale = galaxy.InfluenceScale,
|
||||
Antagonist = galaxy.Antagonist == null ? default : cache.RefOf(galaxy.Antagonist),
|
||||
ActionBarBindings = actionBar,
|
||||
Credits = credits,
|
||||
Seed = galaxy.Seed
|
||||
|
|
|
|||
Loading…
Reference in a new issue