#480 fixed aux coolant connection to boilers with emergency coolant

This commit is contained in:
Mikayla Fischler
2025-02-26 13:08:58 -05:00
parent 122fa1a7a7
commit 5fc8912590
3 changed files with 8 additions and 4 deletions

View File

@@ -98,14 +98,16 @@ local function make(parent, x, y, wide, unit_id)
table.insert(rc_pipes, pipe(_wide(46, 39), 3, _wide(72, 58), 3, colors.white, true))
if unit.aux_coolant then
table.insert(rc_pipes, pipe(_wide(51, 41), 0, _wide(51, 41), 1, colors.blue, true))
local em_water = facility.tank_fluid_types[facility.tank_conns[unit_id]] == COOLANT_TYPE.WATER
local offset = util.trinary(unit.has_tank and em_water, 3, 0)
table.insert(rc_pipes, pipe(_wide(51, 41) + offset, 0, _wide(51, 41) + offset, 0, colors.blue, true))
end
else
table.insert(rc_pipes, pipe(0, 1, _wide(72, 58), 1, colors.blue, true))
table.insert(rc_pipes, pipe(0, 3, _wide(72, 58), 3, colors.white, true))
if unit.aux_coolant then
table.insert(rc_pipes, pipe(8, 0, 8, 1, colors.blue, true))
table.insert(rc_pipes, pipe(8, 0, 8, 0, colors.blue, true))
end
end