fusion-lab/data-updates.lua

Wed, 02 Jul 2025 14:28:57 +0300

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

Add fusion lab (currently v1.2.3)

-- Using fluoroketones in a heat exchanger requires both fluoroketones
-- have the same default temperature, so we need to modify that here.
data.raw.fluid["fluoroketone-hot"].default_temperature = data.raw.fluid["fluoroketone-cold"].default_temperature
data.raw.fluid["fluoroketone-hot"].max_temperature = 180

-- We now need need to adjust any recipes that output fluoroketone at default temperature.
-- The cryogenic science pack is one.
for _, recipe in pairs(data.raw.recipe)
do
	for _, result in pairs(recipe.results or {})
	do
		if result.type == 'fluid' and result.name == 'fluoroketone-hot' and result.temperature == nil
		then
			result.temperature = 180
		end
	end
end

mercurial