summaryrefslogtreecommitdiff
path: root/autoplace.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-01-01 16:30:21 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-01-01 16:30:21 -0500
commit1a562d23a85568ec111da07411958c09b0b95117 (patch)
tree5d173ba7346ba5f366fdaacf8d65a71b7f4c796f /autoplace.lua
parent6cca6f9857084b00ab420bdfbcc2b68b07195675 (diff)
downloadpipeworks-1a562d23a85568ec111da07411958c09b0b95117.tar
pipeworks-1a562d23a85568ec111da07411958c09b0b95117.tar.gz
pipeworks-1a562d23a85568ec111da07411958c09b0b95117.tar.bz2
pipeworks-1a562d23a85568ec111da07411958c09b0b95117.tar.xz
pipeworks-1a562d23a85568ec111da07411958c09b0b95117.zip
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.
Diffstat (limited to 'autoplace.lua')
-rw-r--r--autoplace.lua22
1 files changed, 22 insertions, 0 deletions
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