Compare commits

..

2 commits

Author SHA1 Message Date
Simon Brodtmann
696ce4cd05 Fix outdated recipe names for thermofluid 2025-12-25 20:52:13 +01:00
Simon Brodtmann
301530421d Fix booleans being strings 2025-12-25 20:51:29 +01:00
2 changed files with 6 additions and 4 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

@ -26,8 +26,10 @@ if mods["space-exploration"] then
util.add_ingredient("se-chemical-gel","povidone", 2)
util.remove_ingredient("se-chemical-gel","toluene")
if mods["Krastorio2"] then
util.add_ingredient("se-space-coolant","ethylene-glycol", 5)
util.remove_ingredient("se-space-coolant","salt")
util.add_ingredient("se-space-coolant-hot","ethylene-glycol", 5)
util.remove_ingredient("se-space-coolant-hot","salt")
util.add_ingredient("se-space-coolant-hot-cryonite","ethylene-glycol", 5)
util.remove_ingredient("se-space-coolant-hot-cryonite","salt")
util.add_unlock("se-space-radiator-1","ethylene-glycol")
end
end