From 1a562d23a85568ec111da07411958c09b0b95117 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Tue, 1 Jan 2013 16:30:21 -0500 Subject: added a "sealed" entry/exit panel (really just a horizontal pipe with a metal panel overlayed into the middle). Also, tweaked pipes to always drop the empty ones. --- autoplace.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'autoplace.lua') diff --git a/autoplace.lua b/autoplace.lua index 2e5556f..c70095f 100644 --- a/autoplace.lua +++ b/autoplace.lua @@ -149,6 +149,28 @@ function pipes_scansurroundings(pos) pzp=1 end +-- ...sealed pipe entry/exit... + + if (string.find(nxm.name, "pipeworks:entry_panel") ~= nil) + and (nxm.param2 == 1 or nxm.param2 == 3) then + pxm=1 + end + + if (string.find(nxp.name, "pipeworks:entry_panel") ~= nil) + and (nxp.param2 == 1 or nxp.param2 == 3) then + pxp=1 + end + + if (string.find(nzm.name, "pipeworks:entry_panel") ~= nil) + and (nzm.param2 == 0 or nzm.param2 == 2) then + pzm=1 + end + + if (string.find(nzp.name, "pipeworks:entry_panel") ~= nil) + and (nzp.param2 == 0 or nzp.param2 == 2) then + pzp=1 + end + -- ...pumps, grates, and storage tanks if (string.find(nym.name, "pipeworks:storage_tank_") ~= nil) or -- cgit v1.2.3