1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-07-03 08:40:34 +02:00

Extended storage tank to show fill level in 10% steps (0% to 100%).

This commit is contained in:
Vanessa Ezekowitz
2012-08-22 08:24:42 -04:00
parent a66d9a8564
commit 70ea341bf5
15 changed files with 85 additions and 66 deletions

View File

@ -105,15 +105,15 @@ pipes_scansurroundings = function(pos)
-- storage tanks and intake grates have vertical connections
-- also, so they require a special case
if (string.find(nym.name, "pipeworks:storage_tank_x") ~= nil) or
(string.find(nym.name, "pipeworks:storage_tank_z") ~= nil) or
if (string.find(nym.name, "pipeworks:storage_tank_") ~= nil) or
(string.find(nym.name, "pipeworks:storage_tank_") ~= nil) or
(string.find(nym.name, "pipeworks:intake") ~= nil) or
(string.find(nym.name, "pipeworks:outlet") ~= nil) then
pym=1
end
if (string.find(nyp.name, "pipeworks:storage_tank_x") ~= nil) or
(string.find(nyp.name, "pipeworks:storage_tank_z") ~= nil) then
if (string.find(nyp.name, "pipeworks:storage_tank_") ~= nil) or
(string.find(nyp.name, "pipeworks:storage_tank_") ~= nil) then
pyp=1
end