For my mod TechnologyMarket, I would like to calculate the "cost" of a technology. I need the "count" and the ingredients.
For infinite technologies, there is no "count" properties but a "formula" property which allows to get the "count" based on the current level of the technology.
What I need is access to the internal formula parser (as stated here https://www.factorio.com/blog/post/fff-161) from Lua.
Maybe something like :
Code: Select all
formula = "100(L-6)"
engine.formula_calc(formula, 3)