Derive a faction's boss hull from HullData.Boss and its products
HullData.Boss (key 33) is the flag; LoadoutGenerator.BossHullsOf is the one owner of which Ship hulls are a faction's boss (the Boss hulls among the designs of its products). AvailableProducts' candidate filter drops Boss hulls, so one is never stock, traffic, a generated fit or a fallback boss. GenerateShipLoadout splits into the draw and ShipLoadout(product). Galaxy.PlaceFactionsMain and AetherDb factions/loadout read the derivation. Derivation tests replace the two deleted BossHull tests. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4ab2ba15c7
commit
1b5e989182
5 changed files with 235 additions and 12 deletions
|
|
@ -288,9 +288,9 @@ public class Galaxy
|
|||
progressCallback?.Invoke("Placing Factions");
|
||||
if (progressCallback != null) Thread.Sleep(500); // Inserting Delay to make it seem like it's doing more work lmao
|
||||
|
||||
// Choose some megas to have bosses placed based on whether a boss hull is assigned
|
||||
// Choose some megas to have bosses placed: the factions that make a Boss hull
|
||||
var bossMegas = Factions
|
||||
.Where(m => m.BossHull.IsSet())
|
||||
.Where(m => LoadoutGenerator.BossHullsOf(_cache, m).Length > 0)
|
||||
.Take(bossCount)
|
||||
.ToArray();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue