Mini/Micro Machines Core Mod

by Kryzeth

Shared control module for use with Mini/Micro Machines. Enables the cycle size hotkey and adds an icon to machines that can be resized

Internal
a month ago
2.0 - 2.1
4.61K

b [Fixed] FIX for micro reactor neighbor bonus

a month ago
local reactor = data.raw.reactor["micro-nuclear-reactor-1"]

if reactor and reactor.neighbour_connectable then
    reactor.neighbour_connectable.connections = {
        {
            category = "nuclear-reactor",
            location = {
                direction = defines.direction.north,
                position = {0, -0.5}
            },
            neighbour_category = {"nuclear-reactor"}
        },
        {
            category = "nuclear-reactor",
            location = {
                direction = defines.direction.east,
                position = {0.5, 0}
            },
            neighbour_category = {"nuclear-reactor"}
        },
        {
            category = "nuclear-reactor",
            location = {
                direction = defines.direction.south,
                position = {0, 0.5}
            },
            neighbour_category = {"nuclear-reactor"}
        },
        {
            category = "nuclear-reactor",
            location = {
                direction = defines.direction.west,
                position = {-0.5, 0}
            },
            neighbour_category = {"nuclear-reactor"}
        }
    }
end

KI generated, but tested

a month ago

Thanks for the code, was able to adapt it to fix both mini and micro not receiving the neighbor bonus (which I thought was previously working? But maybe it was only the fusion reactors I had working)

Implemented in v2.1.5

New response