Stations: every generated station carries a heater
Operator ruling, 2026-09-30: an idle station has no heat source and cools toward freezing and invisibility, so station generation (LoadoutGenerator, the one owner of station loadouts) equips one heater after the docking bay, from the products whose design is Tool gear with a low-pass Thermotoggle and Heat, the cockpit's thermostat composition. It is required, like the docking bay. Not yet warm: generated stations have no reactor (no reactor product fits Zenith's 16-cell Reactor hardpoint), so the heater's EnergyDraw gets no supply and the station still cools (280 K to ~247 K over ten idle minutes). The test that an idle station stays above freezing waits on that. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f4703e8288
commit
89ef80d298
2 changed files with 35 additions and 0 deletions
|
|
@ -92,6 +92,19 @@ public class LoadoutGenerator
|
|||
throw new InvalidLoadoutException("Failed to equip selected docking bay!");
|
||||
}
|
||||
|
||||
// Every station carries a heater (operator, 2026-09-30): an idle station has no other heat source and cools
|
||||
// toward freezing and invisibility. A heater is general gear whose thermostat runs its heat only below a
|
||||
// target, the composition a cockpit uses: a low-pass Thermotoggle, then Heat, in its behaviours.
|
||||
emptyShape = entity.UnoccupiedSpace;
|
||||
var (heaterProduct, heaterData) = RandomProduct<GearData>(2, item => IsHeater(item) && item.Shape.FitsWithin(emptyShape, out _, out _), required: true);
|
||||
if (heaterData == null) throw new InvalidLoadoutException("No compatible heater found for station!");
|
||||
|
||||
heaterData.Shape.FitsWithin(emptyShape, out var heaterRotation, out var heaterPosition);
|
||||
var heater = ItemManager.CreateInstance(heaterProduct) as EquippableItem;
|
||||
heater.Rotation = heaterRotation;
|
||||
if (!entity.TryEquip(heater, heaterPosition))
|
||||
throw new InvalidLoadoutException("Failed to equip selected heater!");
|
||||
|
||||
FillInterior(entity);
|
||||
|
||||
var cargo = entity.CargoBays.First();
|
||||
|
|
@ -109,6 +122,11 @@ public class LoadoutGenerator
|
|||
return EntitySerializer.Pack(entity) as OrbitalEntityPack;
|
||||
}
|
||||
|
||||
private static bool IsHeater(GearData item) =>
|
||||
item.HardpointType == HardpointType.Tool &&
|
||||
item.Behaviors.Any(b => b is ThermotoggleData { HighPass: false }) &&
|
||||
item.Behaviors.Any(b => b is HeatData);
|
||||
|
||||
// Every entity needs a hull, so hulls are always required
|
||||
public (FactionProductData product, HullData design) RandomHull(HullType type, Predicate<HullData> hullFilter = null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue