Page 1 of 1

Add Quality to the CraftItemTechnologyTrigger Struct

Posted: Tue Jan 14, 2025 6:13 pm
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

Re: Add Quality to the CraftItemTechnologyTrigger Struct

Posted: Tue Jan 14, 2025 9:15 pm
by Klonan
Looking at the code, it already supports setting a quality filter: https://lua-api.factorio.com/latest/typ ... ilter.html

Re: Add Quality to the CraftItemTechnologyTrigger Struct

Posted: Wed Jan 15, 2025 7:41 pm
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