forked from cacklingfiend/lignumis
Add setting for assembler recipe progression and move some lumber mill recipes to a setting
This commit is contained in:
parent
1b622ffa05
commit
34d3b4a1a5
6 changed files with 41 additions and 12 deletions
|
|
@ -48,7 +48,6 @@ local turret_item = {
|
|||
local turret_recipe = {
|
||||
type = "recipe",
|
||||
name = "basic-gun-turret",
|
||||
category = "wood-processing-or-assembling",
|
||||
enabled = false,
|
||||
energy_required = 8,
|
||||
ingredients = {
|
||||
|
|
@ -58,6 +57,9 @@ local turret_recipe = {
|
|||
},
|
||||
results = { { type = "item", name = "basic-gun-turret", amount = 1 } }
|
||||
}
|
||||
if settings.startup["lignumis-lumber-mill-more-recipes"].value then
|
||||
turret_recipe.category = "wood-processing-or-assembling"
|
||||
end
|
||||
|
||||
local turret_technology = {
|
||||
type = "technology",
|
||||
|
|
|
|||
|
|
@ -50,6 +50,8 @@ remnants.animation[2].filename = gfx .. "burner-assembling-machine-remnants.png"
|
|||
remnants.animation[3].filename = gfx .. "burner-assembling-machine-remnants.png"
|
||||
remnants.order = "0[burner-assembling-machine]"
|
||||
|
||||
local crafting_category = settings.startup["lignumis-lumber-mill-more-recipes"].value and "wood-processing-or-assembling" or "crafting"
|
||||
|
||||
data:extend({
|
||||
assembling_machine,
|
||||
remnants,
|
||||
|
|
@ -68,7 +70,7 @@ data:extend({
|
|||
{
|
||||
type = "recipe",
|
||||
name = "burner-assembling-machine",
|
||||
category = "wood-processing-or-assembling",
|
||||
category = crafting_category,
|
||||
enabled = false,
|
||||
ingredients = {
|
||||
{ type = "item", name = "wooden-gear-wheel", amount = 5 },
|
||||
|
|
@ -109,11 +111,11 @@ if not basic_circuit_board then
|
|||
{
|
||||
type = "recipe",
|
||||
name = "burner-assembling-machine-electronic-circuit",
|
||||
category = "wood-processing-or-assembling",
|
||||
category = crafting_category,
|
||||
localised_name = { "entity-name.burner-assembling-machine" },
|
||||
icons = {
|
||||
{ icon = Lignumis.graphics .. "icons/burner-assembling-machine.png" },
|
||||
{ icon = "__base__/graphics/icons/electronic-circuit.png", scale = 0.25, shift = { 8, 8 } }
|
||||
{ icon = "__base__/graphics/icons/electronic-circuit.png", scale = 0.25, shift = { 8, 8 } }
|
||||
},
|
||||
enabled = false,
|
||||
ingredients = {
|
||||
|
|
|
|||
|
|
@ -44,6 +44,8 @@ remnants.animation[3].filename = gfx .. "burner-long-handed-inserter-remnants.pn
|
|||
remnants.animation[4].filename = gfx .. "burner-long-handed-inserter-remnants.png"
|
||||
remnants.order = "a-c-0"
|
||||
|
||||
local crafting_category = settings.startup["lignumis-lumber-mill-more-recipes"].value and "wood-processing-or-assembling" or "crafting"
|
||||
|
||||
data:extend({
|
||||
long_handed_inserter,
|
||||
remnants,
|
||||
|
|
@ -63,7 +65,7 @@ data:extend({
|
|||
{
|
||||
type = "recipe",
|
||||
name = "burner-long-handed-inserter",
|
||||
category = "wood-processing-or-assembling",
|
||||
category = crafting_category,
|
||||
enabled = false,
|
||||
ingredients = {
|
||||
{ type = "item", name = "wooden-gear-wheel", amount = 1 },
|
||||
|
|
|
|||
|
|
@ -41,12 +41,14 @@ burner_inserter.energy_source.initial_fuel_percent = 0.15
|
|||
|
||||
data.raw.item["burner-inserter"].icon = Lignumis.graphics .. "icons/burner-inserter.png"
|
||||
|
||||
local burner_inesrter_recipe = data.raw.recipe["burner-inserter"]
|
||||
burner_inesrter_recipe.ingredients = {
|
||||
local burner_inserter_recipe = data.raw.recipe["burner-inserter"]
|
||||
burner_inserter_recipe.ingredients = {
|
||||
{ type = "item", name = "wooden-gear-wheel", amount = 1 },
|
||||
{ type = "item", name = "lumber", amount = 1 }
|
||||
}
|
||||
burner_inesrter_recipe.category = "wood-processing-or-assembling"
|
||||
if settings.startup["lignumis-lumber-mill-more-recipes"].value then
|
||||
burner_inserter_recipe.category = "wood-processing-or-assembling"
|
||||
end
|
||||
|
||||
|
||||
-- Stone furnace
|
||||
|
|
@ -149,10 +151,11 @@ if settings.startup["lignumis-belt-progression"].value then
|
|||
end
|
||||
|
||||
if settings.startup["lignumis-inserter-progression"].value then
|
||||
table.insert(
|
||||
data.raw.recipe["inserter"].ingredients,
|
||||
{ type = "item", name = "burner-inserter", amount = 1 }
|
||||
)
|
||||
Recipe:new("inserter"):addIngredient("burner-inserter", 1)
|
||||
end
|
||||
|
||||
if settings.startup["lignumis-assembler-progression"].value then
|
||||
Recipe:new("assembling-machine-1"):addIngredient("burner-assembling-machine", 1)
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue