Add optional Basic circuit board

This commit is contained in:
Simon Brodtmann 2025-02-28 00:56:40 +01:00
parent d0818722ae
commit b30eb0b019
19 changed files with 269 additions and 129 deletions

View file

@ -1,6 +1,8 @@
local Technology = require("__cf-lib__/data/Technology")
local Recipe = require("__cf-lib__/data/Recipe")
local basic_circuit_board = settings.startup["lignumis-basic-circuit-board"].value
-- Burner mining drill
local drill = data.raw["mining-drill"]["burner-mining-drill"]
@ -19,9 +21,10 @@ drill_item.icon = "__lignumis__/graphics/icons/burner-mining-drill.png"
local drill_recipe = data.raw["recipe"]["burner-mining-drill"]
drill_recipe.ingredients = {
{ type = "item", name = "wooden-gear-wheel", amount = 3 },
{ type = "item", name = "stone-furnace", amount = 1 },
{ type = "item", name = "lumber", amount = 3 }
{ type = "item", name = "wooden-gear-wheel", amount = basic_circuit_board and 2 or 3 },
{ type = "item", name = "lumber", amount = basic_circuit_board and 2 or 3 },
basic_circuit_board and { type = "item", name = "basic-circuit-board", amount = 2 } or nil
}