Page 1 of 1

Can Science Packs "Remaining" values be changed? (Solved)

Posted: Fri Aug 15, 2025 6:43 pm
by MrDayne
Is there a way to change the science pack quality to remaining percent formula? Right now is 100% extra per quality level and 200% for the legendary quality for a total of 600%. Is there a way to change that?

Solution example:
data.raw.quality["rare"].tool_durability_multiplier = 4
This changes durability of all rare tools to 400% instead of the default 300%.

Re: Custom Item Icons

Posted: Fri Aug 15, 2025 7:11 pm
by Natha

Re: Custom Item Icons

Posted: Fri Aug 15, 2025 9:58 pm
by MrDayne
Natha wrote: Fri Aug 15, 2025 7:11 pm Maybe https://lua-api.factorio.com/latest/pro ... multiplier?
I thought this should be it, but this affects how the labs consume the science depending on the lab's quality. I could not use it as a science pack property.

Re: Custom Item Icons

Posted: Sat Aug 16, 2025 4:57 am
by HunD34TH
Natha wrote: Fri Aug 15, 2025 7:11 pm Maybe https://lua-api.factorio.com/latest/pro ... multiplier?
Almost, science packs are tools, so https://lua-api.factorio.com/latest/pro ... multiplier should be it

Re: Custom Item Icons

Posted: Sat Aug 16, 2025 6:42 pm
by MrDayne
HunD34TH wrote: Sat Aug 16, 2025 4:57 am
Natha wrote: Fri Aug 15, 2025 7:11 pm Maybe https://lua-api.factorio.com/latest/pro ... multiplier?
Almost, science packs are tools, so https://lua-api.factorio.com/latest/pro ... multiplier should be it
Yes, thank you. This was it.