summaryrefslogtreecommitdiff
path: root/autoplace.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-01-05 21:14:09 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-01-05 21:14:09 -0500
commit14102d7c3ad8f7e4aef271294a74c28e7e851bc2 (patch)
tree19f6e2171213d29273202b00acd6b5970db7a83f /autoplace.lua
parent0a1f90c391dcc4907665e1211c666310d36a740b (diff)
downloadpipeworks-14102d7c3ad8f7e4aef271294a74c28e7e851bc2.tar
pipeworks-14102d7c3ad8f7e4aef271294a74c28e7e851bc2.tar.gz
pipeworks-14102d7c3ad8f7e4aef271294a74c28e7e851bc2.tar.bz2
pipeworks-14102d7c3ad8f7e4aef271294a74c28e7e851bc2.tar.xz
pipeworks-14102d7c3ad8f7e4aef271294a74c28e7e851bc2.zip
made storage tanks connect from top/bottom, made storage tank and pipe
textures use the ^ combine operator so they can show the actual liquid going through the pipes/tanks.
Diffstat (limited to 'autoplace.lua')
-rw-r--r--autoplace.lua15
1 files changed, 12 insertions, 3 deletions
diff --git a/autoplace.lua b/autoplace.lua
index 54df02a..6ff5b90 100644
--- a/autoplace.lua
+++ b/autoplace.lua
@@ -171,14 +171,23 @@ function pipes_scansurroundings(pos)
pzp=1
end
--- ...pumps, grates, and storage tanks
+-- ...pumps, grates...
- if (string.find(nym.name, "pipeworks:storage_tank_") ~= nil) or
- (string.find(nym.name, "pipeworks:grating") ~= nil) or
+ if (string.find(nym.name, "pipeworks:grating") ~= nil) or
(string.find(nym.name, "pipeworks:pump") ~= nil) then
pym=1
end
+-- ... and storage tanks.
+
+ if (string.find(nym.name, "pipeworks:storage_tank_") ~= nil) then
+ pym=1
+ end
+
+ if (string.find(nyp.name, "pipeworks:storage_tank_") ~= nil) then
+ pyp=1
+ end
+
-- ...extra devices specified via the function's parameters
-- ...except that this part is not implemented yet
--