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:
parent
48af7c7e17
commit
c81549139d
4 changed files with 58 additions and 40 deletions
|
|
@ -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) }))
|
||||
|
|
|
|||
Loading…
Reference in a new issue