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
|
|
@ -555,6 +555,11 @@ public class HullData : EquippableItemData
|
|||
[Inspectable, JsonProperty("visual"), Key(32)]
|
||||
public CultRecordRef<ShipAuthoring> Visual;
|
||||
|
||||
// Only bosses fly this hull. Which factions it is a boss for comes from its products' makers
|
||||
// (LoadoutGenerator.BossHullsOf), so the flag names no faction and reads no model.
|
||||
[Inspectable, JsonProperty("boss"), Key(33)]
|
||||
public bool Boss;
|
||||
|
||||
// The farthest corner of any occupied hull cell from the centre of mass the schematic frame uses, in world
|
||||
// units: a true bound on how far the hull reaches from its position (the half-diagonal of the bounding box is not,
|
||||
// as FireControl.Detonate's comment records). A cell at (x, y) spans x +/- .5 and y +/- .5.
|
||||
|
|
|
|||
Loading…
Reference in a new issue