forked from cacklingfiend/lignumis
Forbid lumber mill in space
This commit is contained in:
parent
0b0cb8504e
commit
ba34bf2450
1 changed files with 12 additions and 0 deletions
|
@ -13,6 +13,8 @@ data:extend({
|
|||
|
||||
table.insert(data.raw["character"]["character"].crafting_categories, "wood-processing-or-assembling")
|
||||
|
||||
local has_oxygen = data.raw["surface-property"]["oxygen"] ~= nil
|
||||
|
||||
LumberMill.EntityBuilder:new()
|
||||
:burnerEnergySource({ emissions_per_minute = { noise = 100 } })
|
||||
:baseProductivity(0.5)
|
||||
|
@ -20,6 +22,16 @@ LumberMill.EntityBuilder:new()
|
|||
crafting_categories = { "wood-processing-or-assembling" },
|
||||
crafting_speed = 2,
|
||||
energy_usage = "1000kW",
|
||||
surface_conditions = {
|
||||
{
|
||||
property = has_oxygen and "oxygen" or "pressure",
|
||||
min = 10
|
||||
},
|
||||
{
|
||||
property = "gravity",
|
||||
min = 1
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
local lumber_mill_item = LumberMill.ItemBuilder:new()
|
||||
|
|
Loading…
Add table
Reference in a new issue