High Precision Manufacturing (Quality rework)

by Heinarc

Overhauls the quality mechanic. Modules are much stronger, but recyclers can no longer increase quality.

Tweaks
a month ago
2.0
676
Factorio: Space Age Icon Space Age Mod
Manufacturing

g Tier 4 modules from Secretas&Frozeta

5 months ago

Any chance you can add compatibility to the mod Secretas&Forzeta tier 4 modules. Right now module 3 has a 7.5% chance of quality while the tier 4 from Secretas only has 3%.

2 months ago

Nope sorry, for my mental sake I do not intend to support compatibilities. Realisticly I will not be able to maintain them.
That said, feel free to modify the mod files, for example disabling the lines which conflict with another mod balance.

21 days ago

It IS possible to make tier 4 modules from this mod and all others compatible, but it needs reworking part of the code. Here's what I suggest

local multiplier = 3

local function try_multiply(container, key, factor)
if type(container) == "number" then
return container * factor
end
end
for _, prototype in pairs(data.raw["module"]) do
if prototype.effect.quality then
if type(prototype.effect.quality) == "table" then
try_multiply(prototype.effect.quality, "bonus", multiplier)
else
prototype.effect.quality = prototype.effect.quality * multiplier
end
end
end

This way, instead of changing the quality modules manually, each module that changes quality at all has it multiplied by the desired factor, including modded ones! Pardon my bad english

2 days ago

I used a brute force solution on my edit to the mod, I'll try to patch your suggestion in. Thank you AnthonyDPS

New response