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

Place to get help with not working mods / modding interface.
MrDayne
Burner Inserter
Burner Inserter
Posts: 14
Joined: Fri Dec 23, 2022 9:56 am
Contact:

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

Post 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%.
Last edited by MrDayne on Sat Aug 16, 2025 6:46 pm, edited 2 times in total.
Natha
Filter Inserter
Filter Inserter
Posts: 277
Joined: Sun Mar 15, 2015 1:48 pm
Contact:

Re: Custom Item Icons

Post by Natha »

MrDayne
Burner Inserter
Burner Inserter
Posts: 14
Joined: Fri Dec 23, 2022 9:56 am
Contact:

Re: Custom Item Icons

Post 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.
HunD34TH
Inserter
Inserter
Posts: 32
Joined: Mon Apr 02, 2018 3:16 pm
Contact:

Re: Custom Item Icons

Post 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
MrDayne
Burner Inserter
Burner Inserter
Posts: 14
Joined: Fri Dec 23, 2022 9:56 am
Contact:

Re: Custom Item Icons

Post 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.
Post Reply

Return to “Modding help”