forked from cacklingfiend/lignumis
		
	Add recipe for Burner assembling machine for Nauvis
This commit is contained in:
		
							parent
							
								
									1795bc8200
								
							
						
					
					
						commit
						0f63a2548d
					
				
					 5 changed files with 97 additions and 75 deletions
				
			
		| 
						 | 
					@ -90,9 +90,6 @@ moist-stromatolite-remnant-desiccation-without-steam=Desiccate moist stromatolit
 | 
				
			||||||
gold-stromatolite-seed-to-peat=Process gold stromatolite seed
 | 
					gold-stromatolite-seed-to-peat=Process gold stromatolite seed
 | 
				
			||||||
wood-liquefaction=Wood liquefaction
 | 
					wood-liquefaction=Wood liquefaction
 | 
				
			||||||
provisional-rocket-part=Provisional rocket part
 | 
					provisional-rocket-part=Provisional rocket part
 | 
				
			||||||
wood-splitter-electronic-circuit=Wood splitter
 | 
					 | 
				
			||||||
lumber-mill-electronic-circuit=Lumber mill
 | 
					 | 
				
			||||||
burner-agricultural-tower-electronic-circuit=Burner agricultural tower
 | 
					 | 
				
			||||||
cupriavidus-necator-starter=Cupriavidus necator (starter culture)
 | 
					cupriavidus-necator-starter=Cupriavidus necator (starter culture)
 | 
				
			||||||
plastic-from-cupriavidus-necator=Bioplastic
 | 
					plastic-from-cupriavidus-necator=Bioplastic
 | 
				
			||||||
plastic-from-dead-cupriavidus-necator=Bioplastic
 | 
					plastic-from-dead-cupriavidus-necator=Bioplastic
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -94,6 +94,7 @@ data:extend({
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        type = "recipe",
 | 
					        type = "recipe",
 | 
				
			||||||
        name = "burner-agricultural-tower-electronic-circuit",
 | 
					        name = "burner-agricultural-tower-electronic-circuit",
 | 
				
			||||||
 | 
					        localised_name = { "entity-name.burner-agricultural-tower" },
 | 
				
			||||||
        icons = {
 | 
					        icons = {
 | 
				
			||||||
            { icon = "__lignumis__/graphics/icons/burner-agricultural-tower.png" },
 | 
					            { icon = "__lignumis__/graphics/icons/burner-agricultural-tower.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 } }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -75,6 +75,23 @@ data:extend({
 | 
				
			||||||
        results = { { type = "item", name = "burner-assembling-machine", amount = 1 } },
 | 
					        results = { { type = "item", name = "burner-assembling-machine", amount = 1 } },
 | 
				
			||||||
        energy_required = 4
 | 
					        energy_required = 4
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        type = "recipe",
 | 
				
			||||||
 | 
					        name = "burner-assembling-machine-electronic-circuit",
 | 
				
			||||||
 | 
					        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 } }
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        enabled = false,
 | 
				
			||||||
 | 
					        ingredients = {
 | 
				
			||||||
 | 
					            { type = "item", name = "wooden-gear-wheel",  amount = 5 },
 | 
				
			||||||
 | 
					            { type = "item", name = "lumber",             amount = 8 },
 | 
				
			||||||
 | 
					            { type = "item", name = "electronic-circuit", amount = 10 }
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        results = { { type = "item", name = "burner-assembling-machine", amount = 1 } },
 | 
				
			||||||
 | 
					        energy_required = 4
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        type = "technology",
 | 
					        type = "technology",
 | 
				
			||||||
        name = "burner-automation",
 | 
					        name = "burner-automation",
 | 
				
			||||||
| 
						 | 
					@ -99,3 +116,8 @@ data:extend({
 | 
				
			||||||
        ignore_tech_cost_multiplier = true
 | 
					        ignore_tech_cost_multiplier = true
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					table.insert(data.raw.technology["electronics"].effects, {
 | 
				
			||||||
 | 
					    type = "unlock-recipe",
 | 
				
			||||||
 | 
					    recipe = "burner-assembling-machine-electronic-circuit"
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
| 
						 | 
					@ -54,6 +54,7 @@ LumberMill.RecipeBuilder:new()
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
    :apply({
 | 
					    :apply({
 | 
				
			||||||
        name = "lumber-mill-electronic-circuit",
 | 
					        name = "lumber-mill-electronic-circuit",
 | 
				
			||||||
 | 
					        localised_name = { "entity-name.lumber-mill" },
 | 
				
			||||||
        category = "wood-processing-or-assembling",
 | 
					        category = "wood-processing-or-assembling",
 | 
				
			||||||
        icons = {
 | 
					        icons = {
 | 
				
			||||||
            { icon = lumber_mill_item.icon },
 | 
					            { icon = lumber_mill_item.icon },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,72 +1,73 @@
 | 
				
			||||||
local BeltFactory = require(MF.logistics .. "Belts")
 | 
					local BeltFactory = require(MF.logistics .. "Belts")
 | 
				
			||||||
local Belt = BeltFactory("wood", "brown", "slow")
 | 
					local Belt = BeltFactory("wood", "brown", "slow")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Belt.EntityBuilder:new()
 | 
					Belt.EntityBuilder:new()
 | 
				
			||||||
    :itemsPerSecond(7.5)
 | 
					    :itemsPerSecond(7.5)
 | 
				
			||||||
    :nextTier("")
 | 
					    :nextTier("")
 | 
				
			||||||
    :undergroundDistance(4)
 | 
					    :undergroundDistance(4)
 | 
				
			||||||
    :animationSpeedMultiplier(1.01)
 | 
					    :animationSpeedMultiplier(1.01)
 | 
				
			||||||
    :apply({
 | 
					    :apply({
 | 
				
			||||||
        transportBelt = {
 | 
					        transportBelt = {
 | 
				
			||||||
            emissions_per_second = { noise = 0.05 }
 | 
					            emissions_per_second = { noise = 0.05 }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        undergroundBelt = {
 | 
					        undergroundBelt = {
 | 
				
			||||||
            emissions_per_second = { noise = 0.5 }
 | 
					            emissions_per_second = { noise = 0.5 }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        splitter = {
 | 
					        splitter = {
 | 
				
			||||||
            emissions_per_second = { noise = 1 }
 | 
					            emissions_per_second = { noise = 1 }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
local splitter_item = Belt.ItemBuilder:new()
 | 
					local splitter_item = Belt.ItemBuilder:new()
 | 
				
			||||||
    :order("0")
 | 
					    :order("0")
 | 
				
			||||||
    :apply()
 | 
					    :apply()
 | 
				
			||||||
    .splitter
 | 
					    .splitter
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Belt.RecipeBuilder:new()
 | 
					Belt.RecipeBuilder:new()
 | 
				
			||||||
    :beltAmount(2)
 | 
					    :beltAmount(2)
 | 
				
			||||||
    :ingredients("transportBelt", {
 | 
					    :ingredients("transportBelt", {
 | 
				
			||||||
        { type = "item", name = "lumber",            amount = 1 },
 | 
					        { type = "item", name = "lumber",            amount = 1 },
 | 
				
			||||||
        { type = "item", name = "wooden-gear-wheel", amount = 1 }
 | 
					        { type = "item", name = "wooden-gear-wheel", amount = 1 }
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
    :ingredients("undergroundBelt", {
 | 
					    :ingredients("undergroundBelt", {
 | 
				
			||||||
        { type = "item", name = "lumber",              amount = 1 },
 | 
					        { type = "item", name = "lumber",              amount = 1 },
 | 
				
			||||||
        { type = "item", name = "wood-transport-belt", amount = 4 },
 | 
					        { type = "item", name = "wood-transport-belt", amount = 4 },
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
    :ingredients("splitter", {
 | 
					    :ingredients("splitter", {
 | 
				
			||||||
        { type = "item", name = "wood-transport-belt", amount = 2 },
 | 
					        { type = "item", name = "wood-transport-belt", amount = 2 },
 | 
				
			||||||
        { type = "item", name = "lumber",              amount = 2 },
 | 
					        { type = "item", name = "lumber",              amount = 2 },
 | 
				
			||||||
        { type = "item", name = "gold-cable",          amount = 10 }
 | 
					        { type = "item", name = "gold-cable",          amount = 10 }
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
    :apply()
 | 
					    :apply()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Belt.TechnologyBuilder:new()
 | 
					Belt.TechnologyBuilder:new()
 | 
				
			||||||
    :prerequisites({ "wood-science-pack" })
 | 
					    :prerequisites({ "wood-science-pack" })
 | 
				
			||||||
    :ingredients({ { "wood-science-pack", 1 } })
 | 
					    :ingredients({ { "wood-science-pack", 1 } })
 | 
				
			||||||
    :count(10)
 | 
					    :count(10)
 | 
				
			||||||
    :time(10)
 | 
					    :time(10)
 | 
				
			||||||
    :apply()
 | 
					    :apply()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
data:extend({
 | 
					data:extend({
 | 
				
			||||||
    Belt.RecipeBuilder:new()
 | 
					    Belt.RecipeBuilder:new()
 | 
				
			||||||
        :ingredients("splitter", {
 | 
					        :ingredients("splitter", {
 | 
				
			||||||
            { type = "item", name = "wood-transport-belt", amount = 2 },
 | 
					            { type = "item", name = "wood-transport-belt", amount = 2 },
 | 
				
			||||||
            { type = "item", name = "lumber",              amount = 2 },
 | 
					            { type = "item", name = "lumber",              amount = 2 },
 | 
				
			||||||
            { type = "item", name = "electronic-circuit",  amount = 2 }
 | 
					            { type = "item", name = "electronic-circuit",  amount = 2 }
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
        :build({
 | 
					        :build({
 | 
				
			||||||
            splitter = {
 | 
					            splitter = {
 | 
				
			||||||
                name = "wood-splitter-electronic-circuit",
 | 
					                name = "wood-splitter-electronic-circuit",
 | 
				
			||||||
                icons = {
 | 
					                localised_name = { "entity-name.wood-splitter" },
 | 
				
			||||||
                    { icon = splitter_item.icon },
 | 
					                icons = {
 | 
				
			||||||
                    { icon = "__base__/graphics/icons/electronic-circuit.png", scale = 0.25, shift = { 8, 8 } }
 | 
					                    { icon = splitter_item.icon },
 | 
				
			||||||
                }
 | 
					                    { icon = "__base__/graphics/icons/electronic-circuit.png", scale = 0.25, shift = { 8, 8 } }
 | 
				
			||||||
            }
 | 
					                }
 | 
				
			||||||
        })
 | 
					            }
 | 
				
			||||||
        .splitter
 | 
					        })
 | 
				
			||||||
})
 | 
					        .splitter
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
table.insert(data.raw.technology["electronics"].effects, {
 | 
					
 | 
				
			||||||
    type = "unlock-recipe",
 | 
					table.insert(data.raw.technology["electronics"].effects, {
 | 
				
			||||||
    recipe = "wood-splitter-electronic-circuit"
 | 
					    type = "unlock-recipe",
 | 
				
			||||||
})
 | 
					    recipe = "wood-splitter-electronic-circuit"
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue