Crew Quarters is station plant: Facility gear on a Facility row of every hull, seated last; an unset table row owes nothing

StationKinds.InstalledDesigns is the one list of what a station installs, read by FacilityRoomFaults and the generator. The quarters are seated after every other draw so the lot they make moves none. The conjure is named in the code and the batch (follow-up conjuring-site-deletions).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-11-29 01:17:39 +01:00
commit c81549139d
4 changed files with 58 additions and 40 deletions

View file

@ -73,10 +73,12 @@ public static class Upkeep
for (var at = 0; at < owed.Length; at++)
{
var row = data.Table[at];
// A row that names no commodity consumes nothing and owes nothing: its Owed stays zero, so Owed is a fraction below one always.
if (!row.Commodity.IsSet()) continue;
var was = state?.Owed != null && at < state.Owed.Length ? state.Owed[at] : 0;
owed[at] = was + size * row.PerOccupantHour * seconds / 3600;
var whole = (int) Math.Floor(owed[at]);
if (whole <= 0 || !row.Commodity.IsSet()) continue;
if (whole <= 0) continue;
var key = row.Commodity.Key;
var taken = whole;
if (!hold.TryTake(new[] { (key, whole) }))