reduce badness

This commit is contained in:
Crispy 2025-06-02 00:47:39 +02:00
parent 61eefcba8c
commit c91761f3a1
9 changed files with 846 additions and 2333 deletions

View file

@ -13,6 +13,7 @@ isFluid = {
molten_bronze = true,
molten_tin = true,
molten_zinc = true,
molten_brass = true,
compound_mixture = true,
}
@ -65,6 +66,15 @@ function getFluidAmount(type)
return 0
end
function getFluidAmountInTanks(type, tanks)
for _, fluid in pairs(tanks) do
if stripModname(fluid.name) == type then
return fluid.amount
end
end
return 0
end
function pumpToDevices(enable)
goTo(vector.new(4, 0, -1))
-- clutches invert the signal