Compare commits

..

No commits in common. "858d7d4f209d162789b27996c23d0871fc13e38c" and "c02885c314258e23861926cebfe73cdee2779d49" have entirely different histories.

2 changed files with 8 additions and 3 deletions

View file

@ -1188,8 +1188,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,5 +1,10 @@
local util = require("data-util"); local util = require("data-util");
b_prereq = {"basic-chemistry"}
if data.raw.technology["foundry"] then
table.insert(b_prereq, "foundry")
end
data:extend({ data:extend({
{ {
type = "item", type = "item",
@ -30,7 +35,7 @@ data:extend({
name = "bakelite", name = "bakelite",
icon = "__bzgas2__/graphics/technology/bakelite.png", icon = "__bzgas2__/graphics/technology/bakelite.png",
icon_size = 256, icon_size = 256,
prerequisites = {"basic-chemistry"}, prerequisites = b_prereq,
effects = { effects = {
{type = "unlock-recipe", recipe = "bakelite"}, {type = "unlock-recipe", recipe = "bakelite"},
}, },