[Help] Like mining bonus

Place to get help with not working mods / modding interface.
WickedClickIt
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Jun 29, 2016 10:33 pm
Contact:

[Help] Like mining bonus

Post by WickedClickIt »

I was just wondering if it was possible to apply a bonus to other items like assemblers similar to how infinite mining research bonus works?
kikker450
Inserter
Inserter
Posts: 30
Joined: Fri May 05, 2017 9:07 am
Contact:

Re: [Help] Like mining bonus

Post by kikker450 »

If you know how the mining bonus works you should be able to copy it to assemblers. If you can't for some reason you would need to explain more clearly.
WickedClickIt
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Jun 29, 2016 10:33 pm
Contact:

Re: [Help] Like mining bonus

Post by WickedClickIt »

I can't seem to find how the actual bonus is applied to it.
kikker450
Inserter
Inserter
Posts: 30
Joined: Fri May 05, 2017 9:07 am
Contact:

Re: [Help] Like mining bonus

Post by kikker450 »

In the actual lua documentation (file:///C:/Program%20Files%20(x86)/Steam/SteamApps/common/Factorio/doc-html/Concepts.html#Modifier) it becomes clear assemblers don't have such an easily accessible modifier. So you do the old trick of replacing every entity upon a research with a newly created entity (same name, same recipe, same storage etc.) but with a speed of 2% higher or with the results 2% higher. You can make that research upgradable.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [Help] Like mining bonus

Post by darkfrei »

Then you are need open new recipe and hide the old one.
Post Reply

Return to “Modding help”