Quality Promotion


Makes Quality work like Productivity. Once the respective progress bar reaches 100%, the next craft will be of higher quality.

Tweaks
a month ago
2.0 - 2.1
320
Factorio: Space Age Icon Space Age Mod
Manufacturing

b [Fixed] Extra productivity craft isn't counted

a month ago

Hello!
So far I got to Vulcanus and tried crafting something in foundry with 50% productivity, seems like the extra product from the productivity isn't counted towards quality progress. It this intentional to prevent some sort of exploit or just a limitation of current API?
Or maybe it's just because with 50% productivity it's crafted at the same time as a normal item, so the game doesn't fire another event for it.
Thanks for the mod btw, been waiting for something like that forever.

a month ago
(updated a month ago)

When the bonus craft aligns with the main craft it's not accounted for, but if they align when the promotion reaches at 100%, both crafts get the promotion. In the end, the two cancel each other out.
Although now that I think about it, it takes time for them to cancel each other out, which isn't ideal for high-tier qualities that move at snail's pace.

It's the limitation of the game that could technically be worked around, but would require making the mod logic way more complex, and thus more likely to have bugs.

a month ago

And I've immediately got an idea on how to make it work reasonably simple. Coming Soon(tm)

a month ago

Fixed Promotion Progress applying only once when both main and productivity crafts happen on the same tick.

There's still a rare possibility that you'd get a free promotion when both crafts align in a very specific way, but consider that a compensation for being unable to save-reload until you get the rare roll.

a month ago
(updated a month ago)

Thanks!
Actually while playing, I found that previous unfixed mechanic could be exploited a bit, if you add quality modules to get 100 / quality = whole even number, this will make machines with 50% productivity to sync promotion with productivity, always crafting 2 promoted items instead of 1.5 on average. So I guess it really was worth fixing

//edit:
Little addition - since the quality bonus is split between all qualities, it won't work for all of them, and calculating exactly needed quality for one of them would be a pain, but I think it still would be possible. Also you could make it so first 2-3 promoted crafts would be 2x, then when it's out of sync just change recipe and reset gauges to 0. I like new mechanic better.

New response