Make pipe code more robust

https://github.com/SimonBrodtmann/lignumis/issues/5
This commit is contained in:
Simon Brodtmann 2025-01-27 20:21:25 +01:00
parent 0d91504cd3
commit b6213fe1fb

View file

@ -127,8 +127,12 @@ pipe_to_ground.icon = "__lignumis__/graphics/icons/gold-pipe-to-ground.png"
pipe_to_ground.corpse = "gold-pipe-to-ground-remnants" pipe_to_ground.corpse = "gold-pipe-to-ground-remnants"
pipe_to_ground.next_upgrade = "pipe-to-ground" pipe_to_ground.next_upgrade = "pipe-to-ground"
pipe_to_ground.fluid_box.volume = 50 pipe_to_ground.fluid_box.volume = 50
pipe_to_ground.fluid_box.pipe_connections[2].max_underground_distance = 6
pipe_to_ground.minable.result = "gold-pipe-to-ground" pipe_to_ground.minable.result = "gold-pipe-to-ground"
for _, connection in pairs(pipe_to_ground.fluid_box.pipe_connections) do
if connection.connection_type == "underground" then
connection.max_underground_distance = 6
end
end
pipe_to_ground.fluid_box.pipe_covers.north.layers[1].filename = pipe_to_ground.fluid_box.pipe_covers.north.layers[1].filename =
"__lignumis__/graphics/entity/gold-pipe/gold-pipe-cover-north.png" "__lignumis__/graphics/entity/gold-pipe/gold-pipe-cover-north.png"