Faction.ManufacturerOnly (key 19): the main galaxy never draws such a faction
A manufacturer-only faction sells through other factions' allegiance and holds no territory (ruling minor-power-brands). The Galaxy main constructor's one faction draw filters on the field; no shipped record sets it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
594d347704
commit
5dce222b01
3 changed files with 89 additions and 1 deletions
|
|
@ -57,6 +57,10 @@ public class Faction
|
|||
|
||||
[Inspectable, JsonProperty("bossMusic"), Key(15)]
|
||||
public uint BossMusic;
|
||||
|
||||
// A manufacturer-only faction sells through other factions' allegiance and never holds territory (ruling minor-power-brands).
|
||||
[Inspectable, JsonProperty("manufacturerOnly"), Key(19)]
|
||||
public bool ManufacturerOnly;
|
||||
}
|
||||
|
||||
[CultDocument("aetheria.namefile", "1"), Inspectable, MessagePackObject]
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ public class Galaxy
|
|||
IsPrelude = false;
|
||||
Background = background;
|
||||
Log = log;
|
||||
var factions = cache.GetAll<Faction>();
|
||||
var factions = cache.GetAll<Faction>().Where(f => !f.ManufacturerOnly);
|
||||
Seed = seed == 0 ? (uint) (DateTime.Now.Ticks % uint.MaxValue) : seed;
|
||||
var random = new Random(Seed);
|
||||
Factions = factions.OrderBy(x => random.NextFloat()).Take(settings.MegaCount).ToArray();
|
||||
|
|
|
|||
Loading…
Reference in a new issue