Allow something similar to count_formula for specific TechnologyTriggers

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
MrSmoothieHuman
Fast Inserter
Fast Inserter
Posts: 129
Joined: Sat Aug 05, 2023 1:20 am
Contact:

Allow something similar to count_formula for specific TechnologyTriggers

Post by MrSmoothieHuman »

A way to add something similar to count_forumla within specific TechnologyTriggers (my main thinking was crafting a set amount of items/fluids) could be pretty useful, and give more usecases for technology triggers themselves - one usecase being to be able to make infinite 'bonus' technologies using triggers, which is something I plan on implementing in my own mods; and having a way to achieve that, instead of making a bunch of the same technology, would be very useful. :)

I'm not sure exactly how this could be implemented, but the two ways I imagined it being part of the API would be:

Code: Select all

{
	type = "craft-item",
	name = "iron-plate",
	count = 5,
	count_increase = 10
}
Where count_increase would be an optional variable, and would add itself onto the existing amount every time it was researched.

Code: Select all

{
	type = "craft-item",
	name = "iron-plate",
	count_formula = "2^(L-3)*10"
}
I would imagine this'd be easier to implement as its identical, and just have it work identical to count_formula when using science :lol:
coder? i hardly know her!
protocol_1903
Filter Inserter
Filter Inserter
Posts: 272
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: Allow something similar to count_formula for specific TechnologyTriggers

Post by protocol_1903 »

That sounds amazing, i thought it had already been implemented as such...

+1
If you need to reach me, message me on discord.

I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
Post Reply

Return to “Modding interface requests”