Fix surface condition for tree seed recipe
This commit is contained in:
parent
ede0bcff12
commit
23a52139c2
4 changed files with 9 additions and 19 deletions
|
|
@ -2,11 +2,11 @@ if not mods["Diversitree"] then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
data.raw.plant["s6xdvt-fake-tree"].surface_conditions[1].min = 900
|
PlanetsLib.relax_surface_conditions(data.raw.plant["s6xdvt-fake-tree"], {property = "pressure", min = 900})
|
||||||
|
|
||||||
local tree_plant = data.raw.plant["s6xdvt-fake-tree"]
|
local tree_plant = data.raw.plant["s6xdvt-fake-tree"]
|
||||||
tree_plant.growth_ticks = 5 * minute
|
tree_plant.growth_ticks = 5 * minute
|
||||||
tree_plant.minable.results = { { type = "item", name = "wood", amount = 5 } }
|
tree_plant.minable.results = { { type = "item", name = "wood", amount = 5 } }
|
||||||
tree_plant.minable.count = nil
|
tree_plant.minable.count = nil
|
||||||
tree_plant.surface_conditions[1].min = 900
|
PlanetsLib.relax_surface_conditions(tree_plant, {property = "pressure", min = 900})
|
||||||
table.insert(tree_plant.autoplace.tile_restriction, "natural-gold-soil")
|
table.insert(tree_plant.autoplace.tile_restriction, "natural-gold-soil")
|
||||||
|
|
@ -24,13 +24,7 @@ agricultural_tower.resistances = nil
|
||||||
agricultural_tower.input_inventory_size = 1
|
agricultural_tower.input_inventory_size = 1
|
||||||
agricultural_tower.output_inventory_size = 3
|
agricultural_tower.output_inventory_size = 3
|
||||||
agricultural_tower.radius = 2
|
agricultural_tower.radius = 2
|
||||||
if agricultural_tower.surface_conditions then
|
PlanetsLib.relax_surface_conditions(agricultural_tower, {property = "pressure", min = 900})
|
||||||
for _, condition in pairs(agricultural_tower.surface_conditions) do
|
|
||||||
if condition.property == "pressure" then
|
|
||||||
condition.min = 900
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local crane = agricultural_tower.crane
|
local crane = agricultural_tower.crane
|
||||||
crane.parts[1].rotated_sprite.filenames = { gfx .. "burner-agricultural-tower-crane-1-1.png", gfx ..
|
crane.parts[1].rotated_sprite.filenames = { gfx .. "burner-agricultural-tower-crane-1-1.png", gfx ..
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,7 @@ plant.autoplace = {
|
||||||
probability_expression = "0",
|
probability_expression = "0",
|
||||||
tile_restriction = { "natural-gold-soil" }
|
tile_restriction = { "natural-gold-soil" }
|
||||||
}
|
}
|
||||||
plant.surface_conditions[1].min = 900
|
PlanetsLib.relax_surface_conditions(plant, {property = "pressure", min = 900})
|
||||||
|
|
||||||
local seed = {
|
local seed = {
|
||||||
type = "item",
|
type = "item",
|
||||||
|
|
|
||||||
|
|
@ -77,20 +77,15 @@ end
|
||||||
|
|
||||||
|
|
||||||
-- Gun turret
|
-- Gun turret
|
||||||
|
|
||||||
data.raw["ammo-turret"]["gun-turret"].attack_parameters.range = 20
|
data.raw["ammo-turret"]["gun-turret"].attack_parameters.range = 20
|
||||||
Item:new("gun-turret"):itemsPerRocket(50)
|
Item:new("gun-turret"):itemsPerRocket(50)
|
||||||
|
|
||||||
|
|
||||||
-- Agricultural tower
|
-- Agricultural tower
|
||||||
|
|
||||||
local agricultural_tower = data.raw["agricultural-tower"]["agricultural-tower"]
|
PlanetsLib.relax_surface_conditions(data.raw["agricultural-tower"]["agricultural-tower"], {property = "pressure", min = 900})
|
||||||
if agricultural_tower.surface_conditions then
|
|
||||||
for _, condition in pairs(agricultural_tower.surface_conditions) do
|
|
||||||
if condition.property == "pressure" then
|
|
||||||
condition.min = 900
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Solar panal
|
-- Solar panal
|
||||||
Item:new("solar-panel"):itemsPerRocket(50)
|
Item:new("solar-panel"):itemsPerRocket(50)
|
||||||
|
|
@ -101,6 +96,7 @@ Item:new("solar-panel"):itemsPerRocket(50)
|
||||||
local wood_processing = data.raw.recipe["wood-processing"]
|
local wood_processing = data.raw.recipe["wood-processing"]
|
||||||
wood_processing.ingredients[1].amount = 1
|
wood_processing.ingredients[1].amount = 1
|
||||||
wood_processing.icon = data.raw.item["tree-seed"].icon
|
wood_processing.icon = data.raw.item["tree-seed"].icon
|
||||||
|
PlanetsLib.relax_surface_conditions(wood_processing, {property = "pressure", min = 900})
|
||||||
|
|
||||||
for _, tree in pairs(data.raw.tree) do
|
for _, tree in pairs(data.raw.tree) do
|
||||||
local function isWoodResult(result)
|
local function isWoodResult(result)
|
||||||
|
|
@ -127,7 +123,7 @@ local tree_plant = data.raw.plant["tree-plant"]
|
||||||
tree_plant.growth_ticks = 5 * minute
|
tree_plant.growth_ticks = 5 * minute
|
||||||
tree_plant.minable.results = { { type = "item", name = "wood", amount = 5 } }
|
tree_plant.minable.results = { { type = "item", name = "wood", amount = 5 } }
|
||||||
tree_plant.minable.count = nil
|
tree_plant.minable.count = nil
|
||||||
tree_plant.surface_conditions[1].min = 900
|
PlanetsLib.relax_surface_conditions(tree_plant, {property = "pressure", min = 900})
|
||||||
table.insert(tree_plant.autoplace.tile_restriction, "natural-gold-soil")
|
table.insert(tree_plant.autoplace.tile_restriction, "natural-gold-soil")
|
||||||
|
|
||||||
table.insert(data.raw["assembling-machine"]["assembling-machine-1"].crafting_categories, "organic-or-assembling")
|
table.insert(data.raw["assembling-machine"]["assembling-machine-1"].crafting_categories, "organic-or-assembling")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue