Add compatibility for Zen Garden
This commit is contained in:
parent
e54e0aff77
commit
d51d746159
6 changed files with 32 additions and 5 deletions
|
|
@ -32,6 +32,7 @@
|
||||||
"? wood-industry",
|
"? wood-industry",
|
||||||
"? wood-military >= 2.3.3",
|
"? wood-military >= 2.3.3",
|
||||||
"? wood-logistics",
|
"? wood-logistics",
|
||||||
|
"? zen-garden",
|
||||||
"(?) atan-nuclear-science",
|
"(?) atan-nuclear-science",
|
||||||
"(?) Diversitree",
|
"(?) Diversitree",
|
||||||
"(?) gleba-reborn",
|
"(?) gleba-reborn",
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,5 @@ require("wood-industry")
|
||||||
require("crushing-industry")
|
require("crushing-industry")
|
||||||
require("canal-excavator")
|
require("canal-excavator")
|
||||||
require("diversitree")
|
require("diversitree")
|
||||||
require("muluna")
|
require("muluna")
|
||||||
|
require("zen-garden")
|
||||||
20
lignumis/prototypes/compatibility/zen-garden.lua
Normal file
20
lignumis/prototypes/compatibility/zen-garden.lua
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
local Technology = require("__cf-lib__/data/Technology")
|
||||||
|
|
||||||
|
if not mods["zen-garden"] then return end
|
||||||
|
|
||||||
|
Technology:new('basic-gardening'):addPrerequisite('automation-science-pack')
|
||||||
|
Technology:new('composting')
|
||||||
|
:removePrerequisite('automation-2')
|
||||||
|
:removeIngredient('logistic-science-pack')
|
||||||
|
:assign({
|
||||||
|
ignore_tech_cost_multiplier = true
|
||||||
|
})
|
||||||
|
|
||||||
|
if settings.startup['zen-garden-enabled'].value then
|
||||||
|
Technology:new('gear-gardening'):removeIngredient('logistic-science-pack')
|
||||||
|
Technology:new('zen-gardening'):removeIngredient('logistic-science-pack')
|
||||||
|
end
|
||||||
|
|
||||||
|
if settings.startup['zen-bonsai-decor-enabled'].value then
|
||||||
|
Technology:new('zen-bonsai'):removeIngredient('logistic-science-pack')
|
||||||
|
end
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
if not mods["astroponics"] then
|
if not mods["astroponics"] then return end
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local Settings = require("__cf-lib__/settings/Settings")
|
local Settings = require("__cf-lib__/settings/Settings")
|
||||||
local force = Settings.force
|
local force = Settings.force
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
require("wood-logistics")
|
require("wood-logistics")
|
||||||
require("wood-military")
|
require("wood-military")
|
||||||
require("astroponics")
|
require("astroponics")
|
||||||
|
require("zen-garden")
|
||||||
6
lignumis/settings/zen-garden.lua
Normal file
6
lignumis/settings/zen-garden.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
if not mods["zen-garden"] then return end
|
||||||
|
|
||||||
|
local Settings = require("__cf-lib__/settings/Settings")
|
||||||
|
local default = Settings.default
|
||||||
|
|
||||||
|
default("zen-tower-enabled", false)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue