fusion-lab/data-updates.lua

changeset 10
101603241531
equal deleted inserted replaced
9:b0f85ff1a503 10:101603241531
1 -- Using fluoroketones in a heat exchanger requires both fluoroketones
2 -- have the same default temperature, so we need to modify that here.
3 data.raw.fluid["fluoroketone-hot"].default_temperature = data.raw.fluid["fluoroketone-cold"].default_temperature
4 data.raw.fluid["fluoroketone-hot"].max_temperature = 180
5
6 -- We now need need to adjust any recipes that output fluoroketone at default temperature.
7 -- The cryogenic science pack is one.
8 for _, recipe in pairs(data.raw.recipe)
9 do
10 for _, result in pairs(recipe.results or {})
11 do
12 if result.type == 'fluid' and result.name == 'fluoroketone-hot' and result.temperature == nil
13 then
14 result.temperature = 180
15 end
16 end
17 end

mercurial