forked from cacklingfiend/lignumis
Add alternative electronic circuit recipe
This commit is contained in:
parent
0b4db261d2
commit
24dfb383a7
2 changed files with 14 additions and 1 deletions
|
|
@ -121,6 +121,7 @@ refresh-steam-science-pack=Refresh steam science pack
|
||||||
moist-stromatolite-remnant-desiccation-without-steam=Used for balancing the production of steam.
|
moist-stromatolite-remnant-desiccation-without-steam=Used for balancing the production of steam.
|
||||||
gold-stromatolite-seed-to-peat=Used for voiding excess gold stromatolite seeds.
|
gold-stromatolite-seed-to-peat=Used for voiding excess gold stromatolite seeds.
|
||||||
refresh-steam-science-pack=Heats a science flask with water to the right temperature to be used as steam science pack.
|
refresh-steam-science-pack=Heats a science flask with water to the right temperature to be used as steam science pack.
|
||||||
|
electronic-circuit-iron=Inefficient alternative recipe that doesn't require wood ingredients.
|
||||||
|
|
||||||
[technology-name]
|
[technology-name]
|
||||||
wood-science-pack=Wood science pack
|
wood-science-pack=Wood science pack
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
local item_sounds = require("__base__.prototypes.item_sounds")
|
local item_sounds = require("__base__.prototypes.item_sounds")
|
||||||
local Technology = require("__cf-lib__/data/Technology")
|
local Technology = require("__cf-lib__/data/Technology")
|
||||||
|
local Recipe = require("__cf-lib__/data/Recipe")
|
||||||
|
|
||||||
if not settings.startup["lignumis-basic-circuit-board"].value then return end
|
if not settings.startup["lignumis-basic-circuit-board"].value then return end
|
||||||
|
|
||||||
|
|
@ -56,5 +57,16 @@ data:extend({
|
||||||
Technology:new("copper-processing"):addRecipe("basic-circuit-board-copper")
|
Technology:new("copper-processing"):addRecipe("basic-circuit-board-copper")
|
||||||
|
|
||||||
if settings.startup["lignumis-circuit-progression"].value then
|
if settings.startup["lignumis-circuit-progression"].value then
|
||||||
table.insert(data.raw.recipe["electronic-circuit"].ingredients, { type = "item", name = "basic-circuit-board", amount = 1 })
|
local wood_recipe = Recipe:new("electronic-circuit")
|
||||||
|
local iron_recipe = wood_recipe:clone("electronic-circuit-iron"):apply()
|
||||||
|
|
||||||
|
wood_recipe:addIngredient("basic-circuit-board", 1)
|
||||||
|
iron_recipe:replaceIngredient("iron-plate", 2)
|
||||||
|
:replaceIngredient("copper-cable", 6)
|
||||||
|
:addIndicatorIcon("__base__/graphics/icons/iron-plate.png")
|
||||||
|
:assign({
|
||||||
|
localised_name = { "item-name.electronic-circuit" },
|
||||||
|
order = "b[circuits]-b0[electronic-circuit-iron]"
|
||||||
|
})
|
||||||
|
:unlockedByTechnology("electronics")
|
||||||
end
|
end
|
||||||
Loading…
Add table
Add a link
Reference in a new issue