Add Quality to the CraftItemTechnologyTrigger Struct

Place to get help with not working mods / modding interface.
User avatar
thankbob
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Sep 25, 2019 9:17 pm
Contact:

Add Quality to the CraftItemTechnologyTrigger Struct

Post by thankbob »

In the mod API I would like struct in the CraftItemTechnologyTrigger to include quality. The reason I want this feature is so I can set up potentially more variety in modded paths of research.

These new paths of research could make some research feel more immersive if planned out correctly.

For example a player would need to have created a specific amount of uncommon ammo before unlocking the next tier of ammo almost like the player created enough of a better form of the original ammo that player has had an epiphany of how to make a completely new item based on the previous tier.

https://lua-api.factorio.com/latest/typ ... igger.html
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5328
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Add Quality to the CraftItemTechnologyTrigger Struct

Post by Klonan »

Looking at the code, it already supports setting a quality filter: https://lua-api.factorio.com/latest/typ ... ilter.html
User avatar
thankbob
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Sep 25, 2019 9:17 pm
Contact:

Re: Add Quality to the CraftItemTechnologyTrigger Struct

Post by thankbob »

Oh okay I see what I was doing wrong now. Not done lua for a while and not dabbled to much in factorio mods.

Thanks for pointing me in the right direction
Post Reply

Return to “Modding help”