Diversitree: Improve compatibility
This commit is contained in:
parent
996fd2f7c4
commit
61c2d30dd7
3 changed files with 15 additions and 6 deletions
|
|
@ -7,4 +7,5 @@ require("nuclear-science")
|
||||||
require("lane-splitters")
|
require("lane-splitters")
|
||||||
require("wood-industry")
|
require("wood-industry")
|
||||||
require("crushing-industry")
|
require("crushing-industry")
|
||||||
require("canal-excavator")
|
require("canal-excavator")
|
||||||
|
require("diversitree")
|
||||||
12
lignumis/prototypes/compatibility/diversitree.lua
Normal file
12
lignumis/prototypes/compatibility/diversitree.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
if not mods["Diversitree"] then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
data.raw.plant["s6xdvt-fake-tree"].surface_conditions[1].min = 900
|
||||||
|
|
||||||
|
local tree_plant = data.raw.plant["s6xdvt-fake-tree"]
|
||||||
|
tree_plant.growth_ticks = 5 * minute
|
||||||
|
tree_plant.minable.results = { { type = "item", name = "wood", amount = 5 } }
|
||||||
|
tree_plant.minable.count = nil
|
||||||
|
tree_plant.surface_conditions[1].min = 900
|
||||||
|
table.insert(tree_plant.autoplace.tile_restriction, "natural-gold-soil")
|
||||||
|
|
@ -111,7 +111,7 @@ for _, tree in pairs(data.raw.tree) do
|
||||||
if not isRegularTree then goto continue end
|
if not isRegularTree then goto continue end
|
||||||
tree.minable.result = nil
|
tree.minable.result = nil
|
||||||
tree.minable.count = nil
|
tree.minable.count = nil
|
||||||
local woodResult = { type = "item", name = "wood", amount = nil, amount_min = 2, amount_max = 10 }
|
local woodResult = { type = "item", name = "wood", amount = nil, amount_min = 2, amount_max = 8 }
|
||||||
if minable.results and #woodResults > 0 then
|
if minable.results and #woodResults > 0 then
|
||||||
table.assign(woodResults[1], woodResult)
|
table.assign(woodResults[1], woodResult)
|
||||||
woodResults[1].amount = nil
|
woodResults[1].amount = nil
|
||||||
|
|
@ -128,10 +128,6 @@ tree_plant.minable.count = nil
|
||||||
tree_plant.surface_conditions[1].min = 900
|
tree_plant.surface_conditions[1].min = 900
|
||||||
table.insert(tree_plant.autoplace.tile_restriction, "natural-gold-soil")
|
table.insert(tree_plant.autoplace.tile_restriction, "natural-gold-soil")
|
||||||
|
|
||||||
if mods["Diversitree"] then
|
|
||||||
data.raw.plant["s6xdvt-fake-tree"].surface_conditions[1].min = 900
|
|
||||||
end
|
|
||||||
|
|
||||||
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