Productivity Research for Everyone (FG)

by Buggi

FG version HIGHLY configurable. Adds a productivity research for every recipe that supports productivity and does not already have one.

Content
9 months ago
2.0
697
Manufacturing

g Compatibility with Planet mods

15 days ago

Hi i managed to get this mod running by modifing this function in fuctions.lua. (For example muluna is crashing originally).

function ProductivityResearchForEveryone.rescaleIcons(icons, rescale_mod)
if not icons or type(icons) ~= "table" then return end
if type(rescale_mod) ~= "number" then return end

for _, icon in pairs(icons) do
    -- only touch layers with a numeric scale
    if type(icon.scale) == "number" then
        icon.scale = icon.scale * rescale_mod

        -- shift must be a numeric {x, y}
        if icon.shift
           and type(icon.shift) == "table"
           and type(icon.shift[1]) == "number"
           and type(icon.shift[2]) == "number"
        then
            icon.shift[1] = icon.shift[1] * rescale_mod
            icon.shift[2] = icon.shift[2] * rescale_mod
        end
    end
end

end

New response