Compare commits

...

3 commits

Author SHA1 Message Date
Simon Brodtmann
3d57c4f70e Add tantalum-capacitor to kr-electronic-components-with-lithium 2025-12-25 21:10:15 +01:00
Simon Brodtmann
8d4ea6f551 Fix booleans being strings 2025-12-25 21:07:40 +01:00
Simon Brodtmann
ecfece5b79 Format 2025-12-25 21:07:30 +01:00
2 changed files with 182 additions and 181 deletions

View file

@ -855,8 +855,8 @@ function util.replace_ingredients_prior_to(tech, old, new, multiplier)
end
util.remove_prior_unlocks(tech, old)
for i, recipe in pairs(data.raw.recipe) do
if (recipe.enabled and recipe.enabled ~= 'false')
and (not recipe.hidden or recipe.hidden == 'true') -- probably don't want to change hidden recipes
if (recipe.enabled and recipe.enabled ~= false)
and (not recipe.hidden or recipe.hidden == true) -- probably don't want to change hidden recipes
and string.sub(recipe.name, 1, 3) ~= 'se-' -- have to exlude SE in general :(
then
-- log("BZZZ due to 'enabled' replacing " .. old .. " with " .. new .." in " .. recipe.name) -- Handy Debug :|

View file

@ -199,6 +199,7 @@ data:extend({
util.add_unlock("advanced-circuit", "tantalum-capacitor")
if mods["Krastorio2"] then
util.add_ingredient("kr-electronic-components", "tantalum-capacitor", 2)
util.add_ingredient("kr-electronic-components-with-lithium", "tantalum-capacitor", 3)
else
util.add_ingredient("advanced-circuit", "tantalum-capacitor", 2)
end