Equalizer Chests


Provides chests that will equalize their contents between direct neightbours.

Content
7 years ago
0.13 - 0.15
13
Storage

g Circuit networking patch

8 years ago
(updated 8 years ago)

I decided to have a go at it -- it appears that you just need to add a circuit network attachment point to have it get supported. I grabbed the base game's chest (specifically iron, but I think they're all the same) attachment point configs and stuck them on. It appears to work. Here's the patch --

E: Code blocks don't appear to show right -- here's a pastebin link: http://pastebin.com/KkG3Dyvf

<pre>--- a/prototypes/entities.lua +++ b/prototypes/entities.lua @@ -1,6 +1,6 @@ data:extend( { - { + { type = "container", name = "equalizer-chest", icon = "__Equalizer_Chests__/graphics/icons/equalizer-chest.png", @@ -28,7 +28,22 @@ data:extend( width = 48, height = 34, shift = {0.2, 0} - } + }, + circuit_wire_connection_point = + { + shadow = + { + red = {0.734375, 0.453125}, + green = {0.609375, 0.515625}, + }, + wire = + { + red = {0.40625, 0.21875}, + green = {0.40625, 0.375}, + } + }, + circuit_connector_sprites = get_circuit_connector_sprites({0.1875, 0.15625}, nil, 18), + circuit_wire_max_distance = 7.5 }, } </pre>

New response