fusion-lab/data-final-fixes.lua

Wed, 02 Jul 2025 14:29:06 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Wed, 02 Jul 2025 14:29:06 +0300
changeset 11
da16c5a08162
parent 10
101603241531
permissions
-rw-r--r--

Added tag fusion-lab_1.2.3 for changeset 101603241531

-- make sure it can accept all science packs a biolab can, even if extra science packs are added
-- and it turns out some mods also add new science packs to the regular lab and not the biolab,
-- so we need to add inputs from both of them
local inputs = {}
for _, lab in pairs{data.raw.lab.lab, data.raw.lab.biolab}
do
	for _, lab_input in pairs(lab.inputs)
	do
		inputs[lab_input] = 1
	end
end

data.raw.lab["fusion-lab"].inputs = {}
for lab_input, _ in pairs(inputs)
do
	table.insert(data.raw.lab["fusion-lab"].inputs, lab_input)
end

mercurial