Add setting for keeping the vanilla lab recipe

https://mods.factorio.com/mod/lignumis/discussion/68725ff2ad76390859ee01a7
This commit is contained in:
Simon Brodtmann 2025-08-22 04:13:09 +02:00
parent ac2e341e41
commit 1dbe1af301
3 changed files with 15 additions and 7 deletions

View file

@ -65,7 +65,12 @@ stone_furnace_remnants.animation[1].filename = Lignumis.graphics .. "entity/ston
-- Lab
Recipe:new("lab"):replaceIngredient("transport-belt", "wood-transport-belt")
if settings.startup["lignumis-vanilla-lab"].value then
Recipe:new("transport-belt"):unlockedByTechnology("iron-processing")
else
Recipe:new("lab"):replaceIngredient("transport-belt", "wood-transport-belt")
Recipe:new("transport-belt"):unlockedByTechnology("logistics")
end
-- Gun turret
@ -185,12 +190,6 @@ end
local automation_technology = data.raw.technology["automation"]
automation_technology.ignore_tech_cost_multiplier = false
local logistics_technology = data.raw.technology["logistics"]
table.insert(logistics_technology.effects, {
type = "unlock-recipe",
recipe = "transport-belt"
})
local landfill_technology = data.raw.technology["landfill"]
landfill_technology.prerequisites = { "burner-automation" }
landfill_technology.unit = {