Allow something similar to count_formula for specific TechnologyTriggers
Posted: Tue Apr 08, 2025 1:23 pm
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:
Where count_increase would be an optional variable, and would add itself onto the existing amount every time it was researched.
I would imagine this'd be easier to implement as its identical, and just have it work identical to count_formula when using science 

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
}
Code: Select all
{
type = "craft-item",
name = "iron-plate",
count_formula = "2^(L-3)*10"
}
