Fix early game technologies with bzfoundry

This commit is contained in:
Simon Brodtmann 2025-11-04 23:34:11 +01:00
parent 3ba05c70c2
commit c3c414f36a

View file

@ -1,5 +1,10 @@
local util = require("data-util"); local util = require("data-util");
local prereq = {"basic-chemistry"}
if mods["bzfoundry2"] then
table.insert(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 = prereq,
effects = { effects = {
{type = "unlock-recipe", recipe = "bakelite"}, {type = "unlock-recipe", recipe = "bakelite"},
}, },