diff --git a/lignumis/prototypes/content/lumber-mill.lua b/lignumis/prototypes/content/lumber-mill.lua index 2f55798..3ac959d 100644 --- a/lignumis/prototypes/content/lumber-mill.lua +++ b/lignumis/prototypes/content/lumber-mill.lua @@ -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()