Page 1 of 1

Allow something similar to count_formula for specific TechnologyTriggers

Posted: Tue Apr 08, 2025 1:23 pm
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:

Re: Allow something similar to count_formula for specific TechnologyTriggers

Posted: Tue Apr 08, 2025 4:38 pm
by protocol_1903
That sounds amazing, i thought it had already been implemented as such...

+1