mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-16 02:12:45 -06:00
fixed nullius compat
This commit is contained in:
@@ -1,25 +1,14 @@
|
|||||||
flib = require("__flib__.table")
|
flib = require("__flib__.table")
|
||||||
require('scripts.constants')
|
require('scripts.constants')
|
||||||
|
|
||||||
--Credit to modo-lv for submitting the following code
|
|
||||||
if mods["nullius"] then
|
if mods["nullius"] then
|
||||||
|
-- Credit to modo-lv for submitting the following code
|
||||||
-- Place combinator in the same subgroup as the regular train stop
|
-- Place combinator in the same subgroup as the regular train stop
|
||||||
data.raw["recipe"][COMBINATOR_NAME].subgroup = data.raw["train-stop"]["train-stop"].subgroup
|
data.raw["recipe"][COMBINATOR_NAME].subgroup = data.raw["train-stop"]["train-stop"].subgroup
|
||||||
data.raw["item"][COMBINATOR_NAME].subgroup = data.raw["item"]["train-stop"].subgroup
|
data.raw["item"][COMBINATOR_NAME].subgroup = data.raw["item"]["train-stop"].subgroup
|
||||||
-- Nullius makes modded technologies part of its research tree
|
-- Nullius makes modded technologies part of its research tree
|
||||||
-- Place combinator in the same place on the research tree as LTN
|
-- Place combinator in the same place on the research tree as LTN
|
||||||
table.insert(data.raw.technology["nullius-broadcasting-1"].prerequisites, "cybersyn-train-network")
|
table.insert(data.raw.technology["nullius-broadcasting-1"].prerequisites, "cybersyn-train-network")
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
if mods["nullius"] then
|
|
||||||
--Credit to modo-lv for submitting the following code
|
|
||||||
-- Place combinator in the same subgroup as the regular train stop
|
|
||||||
data.raw["recipe"][COMBINATOR_NAME].subgroup = data.raw["train-stop"]["train-stop"].subgroup
|
|
||||||
data.raw["item"][COMBINATOR_NAME].subgroup = data.raw["item"]["train-stop"].subgroup
|
|
||||||
-- Nullius makes modded technologies part of its research tree
|
|
||||||
-- Place combinator in the same place on the research tree as LTN
|
|
||||||
table.insert(data.raw.technology["nullius-broadcasting-1"].prerequisites, "cybersyn-train-network")
|
|
||||||
else
|
else
|
||||||
-- Reset the combinator recipe back to arithmetic combinator recipe in case a mod has changed it
|
-- Reset the combinator recipe back to arithmetic combinator recipe in case a mod has changed it
|
||||||
local recipe = flib.deep_copy(data.raw["recipe"]["arithmetic-combinator"].ingredients)
|
local recipe = flib.deep_copy(data.raw["recipe"]["arithmetic-combinator"].ingredients)
|
||||||
|
|||||||
Reference in New Issue
Block a user