Compare commits

..

2 commits

Author SHA1 Message Date
Simon Brodtmann
4e33a22bec Remove "kr-crush-limestone" as it conflicts with "limestone-powder" 2025-12-10 18:24:05 +01:00
Simon Brodtmann
7551f9b139 Fix booleans being strings 2025-12-10 18:23:47 +01:00
2 changed files with 10 additions and 5 deletions

View file

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

View file

@ -1,10 +1,15 @@
local util = require("data-util") local util = require("data-util")
if mods["bismuth"] then if mods["bismuth"] then
util.remove_ingredient("bismuth-glass", "calcium-plate") util.remove_ingredient("bismuth-glass", "calcium-plate")
util.add_ingredient("bismuth-glass", "quicklime", 2) util.add_ingredient("bismuth-glass", "quicklime", 2)
end end
if mods["Krastorio2"] and mods["space-exploration"] and mods["248k-Redux"] then if mods["Krastorio2"] and mods["space-exploration"] and mods["248k-Redux"] then
util.remove_ingredient("se-holmium-powder", "gr_materials_gold_wire") util.remove_ingredient("se-holmium-powder", "gr_materials_gold_wire")
end
if mods["Krastorio2"] then
-- Conflicts with "limestone-powder"
data.raw.recipe["kr-crush-limestone"] = nil
end end