belts
This commit is contained in:
parent
f1d7b0250f
commit
c5200729ff
2 changed files with 139 additions and 92 deletions
|
|
@ -100,17 +100,17 @@ emit("lab", "biolab", 20)
|
||||||
emit("locomotive", "locomotive", 200)
|
emit("locomotive", "locomotive", 200)
|
||||||
emit_constant("locomotive", "locomotive", 10)
|
emit_constant("locomotive", "locomotive", 10)
|
||||||
|
|
||||||
--emit_constant("transport-belt", "wood-transport-belt", 2)
|
emit_constant("transport-belt", "wood-transport-belt", 2)
|
||||||
emit_constant("transport-belt", "transport-belt", 3)
|
emit_constant("transport-belt", "transport-belt", 3)
|
||||||
emit_constant("transport-belt", "fast-transport-belt", 4)
|
emit_constant("transport-belt", "fast-transport-belt", 4)
|
||||||
emit_constant("transport-belt", "express-transport-belt", 6)
|
emit_constant("transport-belt", "express-transport-belt", 6)
|
||||||
emit_constant("transport-belt", "turbo-transport-belt", 8)
|
emit_constant("transport-belt", "turbo-transport-belt", 8)
|
||||||
--emit_constant("underground-belt", "wood-underground-belt", 7.5)
|
emit_constant("underground-belt", "wood-underground-belt", 7.5)
|
||||||
emit_constant("underground-belt", "underground-belt", 10)
|
emit_constant("underground-belt", "underground-belt", 10)
|
||||||
emit_constant("underground-belt", "fast-underground-belt", 20)
|
emit_constant("underground-belt", "fast-underground-belt", 20)
|
||||||
emit_constant("underground-belt", "express-underground-belt", 30)
|
emit_constant("underground-belt", "express-underground-belt", 30)
|
||||||
emit_constant("underground-belt", "turbo-underground-belt", 40)
|
emit_constant("underground-belt", "turbo-underground-belt", 40)
|
||||||
--emit_constant("splitter", "wood-splitter", 20)
|
emit_constant("splitter", "wood-splitter", 20)
|
||||||
emit_constant("splitter", "splitter", 30)
|
emit_constant("splitter", "splitter", 30)
|
||||||
emit_constant("splitter", "fast-splitter", 40)
|
emit_constant("splitter", "fast-splitter", 40)
|
||||||
emit_constant("splitter", "express-splitter", 50)
|
emit_constant("splitter", "express-splitter", 50)
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,11 @@
|
||||||
local BeltFactory = require(MF.logistics .. "Belts")
|
local BeltFactory = require(MF.logistics .. "Belts")
|
||||||
local Belt = BeltFactory("wood", "brown", "slow")
|
local Belt = BeltFactory("wood", "brown", "slow")
|
||||||
|
local Recipe = require("__cf-lib__/data/Recipe")
|
||||||
|
local Item = require("__cf-lib__/data/Item")
|
||||||
|
|
||||||
local basic_circuit_board = settings.startup["lignumis-basic-circuit-board"].value
|
local basic_circuit_board = settings.startup["lignumis-basic-circuit-board"].value
|
||||||
|
|
||||||
|
if not mods["wood-logistics"] then
|
||||||
Belt.EntityBuilder:new()
|
Belt.EntityBuilder:new()
|
||||||
:itemsPerSecond(7.5)
|
:itemsPerSecond(7.5)
|
||||||
:nextTier("")
|
:nextTier("")
|
||||||
|
|
@ -102,3 +105,47 @@ if not basic_circuit_board then
|
||||||
recipe = "wood-splitter-electronic-circuit"
|
recipe = "wood-splitter-electronic-circuit"
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
else
|
||||||
|
Recipe:new("wood-transport-belt")
|
||||||
|
:replaceIngredient("copper-cable", "wooden-gear-wheel", 1)
|
||||||
|
:assign({
|
||||||
|
additional_categories = { "wood-processing" }
|
||||||
|
})
|
||||||
|
|
||||||
|
Recipe:new("wood-underground-belt")
|
||||||
|
:assign({
|
||||||
|
additional_categories = { "wood-processing" }
|
||||||
|
})
|
||||||
|
|
||||||
|
Recipe:new("wood-splitter")
|
||||||
|
:replaceIngredient("copper-cable", basic_circuit_board and "basic-circuit-board" or "gold-cable", basic_circuit_board and 5 or nil)
|
||||||
|
:assign({
|
||||||
|
additional_categories = { "wood-processing" }
|
||||||
|
})
|
||||||
|
|
||||||
|
if not basic_circuit_board then
|
||||||
|
Recipe:new("wood-splitter")
|
||||||
|
:clone("wood-splitter-electronic-circuit")
|
||||||
|
:replaceIngredient(basic_circuit_board and "gold-cable" or "basic-circuit-board", "electronic-circuit", 2)
|
||||||
|
:assign({
|
||||||
|
localised_name = { "entity-name.wood-splitter" },
|
||||||
|
icons = {
|
||||||
|
{ icon = data.raw.item["wood-splitter"].icon },
|
||||||
|
{ icon = "__base__/graphics/icons/electronic-circuit.png", scale = 0.25, shift = { 8, 8 } }
|
||||||
|
}
|
||||||
|
})
|
||||||
|
:unlockedByTechnology("electronics")
|
||||||
|
:apply()
|
||||||
|
end
|
||||||
|
|
||||||
|
Item:new("wood-transport-belt")
|
||||||
|
:itemsPerRocket(200)
|
||||||
|
:defaultImportLocation("lignumis")
|
||||||
|
Item:new("wood-underground-belt")
|
||||||
|
:itemsPerRocket(100)
|
||||||
|
:defaultImportLocation("lignumis")
|
||||||
|
Item:new("wood-splitter")
|
||||||
|
:itemsPerRocket(100)
|
||||||
|
:defaultImportLocation("lignumis")
|
||||||
|
end
|
||||||
Loading…
Add table
Add a link
Reference in a new issue