lumber
This commit is contained in:
parent
48f8d8bcb4
commit
6a4f669f59
1 changed files with 36 additions and 31 deletions
|
|
@ -1,34 +1,39 @@
|
||||||
local item_sounds = require("__base__.prototypes.item_sounds")
|
local item_sounds = require("__base__.prototypes.item_sounds")
|
||||||
|
local Recipe = require("__cf-lib__/data/Recipe")
|
||||||
|
|
||||||
data:extend({
|
if not mods["wood-logistics"] then
|
||||||
{
|
data:extend({
|
||||||
type = "item",
|
{
|
||||||
name = "lumber",
|
type = "item",
|
||||||
icon = Lignumis.graphics .. "icons/lumber.png",
|
name = "lumber",
|
||||||
pictures = {
|
icon = Lignumis.graphics .. "icons/lumber.png",
|
||||||
{ filename = Lignumis.graphics .. "icons/lumber.png", size = 64, scale = 0.5 },
|
pictures = {
|
||||||
{ filename = Lignumis.graphics .. "icons/lumber-1.png", size = 64, scale = 0.5 },
|
{ filename = Lignumis.graphics .. "icons/lumber.png", size = 64, scale = 0.5 },
|
||||||
{ filename = Lignumis.graphics .. "icons/lumber-2.png", size = 64, scale = 0.5 },
|
{ filename = Lignumis.graphics .. "icons/lumber-1.png", size = 64, scale = 0.5 },
|
||||||
|
{ filename = Lignumis.graphics .. "icons/lumber-2.png", size = 64, scale = 0.5 },
|
||||||
|
},
|
||||||
|
subgroup = "intermediate-product",
|
||||||
|
order = "A[basic-intermediates]-c[lumber]",
|
||||||
|
inventory_move_sound = item_sounds.wood_inventory_move,
|
||||||
|
pick_sound = item_sounds.wood_inventory_pickup,
|
||||||
|
drop_sound = item_sounds.wood_inventory_move,
|
||||||
|
stack_size = 100,
|
||||||
|
random_tint_color = { 1.0, 0.95, 0.9, 1.0 },
|
||||||
|
fuel_category = "wood",
|
||||||
|
fuel_value = "4MJ"
|
||||||
},
|
},
|
||||||
subgroup = "intermediate-product",
|
{
|
||||||
order = "A[basic-intermediates]-c[lumber]",
|
type = "recipe",
|
||||||
inventory_move_sound = item_sounds.wood_inventory_move,
|
name = "lumber",
|
||||||
pick_sound = item_sounds.wood_inventory_pickup,
|
category = "crafting",
|
||||||
drop_sound = item_sounds.wood_inventory_move,
|
additional_categories = { "wood-processing" },
|
||||||
stack_size = 100,
|
allow_productivity = true,
|
||||||
random_tint_color = { 1.0, 0.95, 0.9, 1.0 },
|
allow_as_intermediate = true,
|
||||||
fuel_category = "wood",
|
ingredients = { { type = "item", name = "wood", amount = 2 } },
|
||||||
fuel_value = "4MJ"
|
results = { { type = "item", name = "lumber", amount = 1 } },
|
||||||
},
|
energy_required = 1
|
||||||
{
|
}
|
||||||
type = "recipe",
|
})
|
||||||
name = "lumber",
|
else
|
||||||
category = "crafting",
|
Recipe:new("lumber"):addCategory("wood-processing")
|
||||||
additional_categories = { "wood-processing" },
|
end
|
||||||
allow_productivity = true,
|
|
||||||
allow_as_intermediate = true,
|
|
||||||
ingredients = { { type = "item", name = "wood", amount = 2 } },
|
|
||||||
results = { { type = "item", name = "lumber", amount = 1 } },
|
|
||||||
energy_required = 1
|
|
||||||
}
|
|
||||||
})
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue