From 1dbe1af301342e72958e6f5f9f36223928a15f6f Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Fri, 22 Aug 2025 04:13:09 +0200 Subject: [PATCH] Add setting for keeping the vanilla lab recipe https://mods.factorio.com/mod/lignumis/discussion/68725ff2ad76390859ee01a7 --- lignumis/locale/en/strings.cfg | 2 ++ lignumis/prototypes/integrations/vanilla.lua | 13 ++++++------- lignumis/settings.lua | 7 +++++++ 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/lignumis/locale/en/strings.cfg b/lignumis/locale/en/strings.cfg index e2546ce..ed9c1a2 100644 --- a/lignumis/locale/en/strings.cfg +++ b/lignumis/locale/en/strings.cfg @@ -181,6 +181,7 @@ lignumis-assembler-progression=Enable progressive assembler recipes lignumis-lumber-mill-more-recipes=Enable more recipes for the lumber mill lignumis-fulgora-wood=Add wood to Fulgora lignumis-early-robots=Even earlier personal robots +lignumis-vanilla-lab=Keep vanilla lab recipe [mod-setting-description] lignumis-belt-progression=Yellow belts will require wood belts to craft. @@ -193,6 +194,7 @@ lignumis-assembler-progression=Assembling machine 1 will require burner assembli lignumis-lumber-mill-more-recipes=The lumber mill can also craft basic turrets, burner assemblers and burner inserters. Improves balancing wood usage when all progressive recipes are enabled and helps with marathon games. lignumis-fulgora-wood=This adds wooden gear wheels to scrap recycling as the main source of wood. Disable this is you have a different source of wood or import everything from other planets. lignumis-early-robots=Personal robots are moved from steam to wood science and are a tiny bit faster. +lignumis-vanilla-lab=Moves the transport belt recipe to Iron processing so the lab can be crafted with the original recipe without requiring to research logistics [autoplace-control-names] lignumis_enemy_base=Lignumis enemy bases diff --git a/lignumis/prototypes/integrations/vanilla.lua b/lignumis/prototypes/integrations/vanilla.lua index 7a25919..9b33ad5 100644 --- a/lignumis/prototypes/integrations/vanilla.lua +++ b/lignumis/prototypes/integrations/vanilla.lua @@ -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 = { diff --git a/lignumis/settings.lua b/lignumis/settings.lua index 61a92cc..b8f74e1 100644 --- a/lignumis/settings.lua +++ b/lignumis/settings.lua @@ -69,6 +69,13 @@ data:extend({ default_value = false, order = "j" }, + { + type = "bool-setting", + name = "lignumis-vanilla-lab", + setting_type = "startup", + default_value = false, + order = "k" + }, { type = "string-setting", name = "lignumis-second-planet",