Tweaks
18 hours ago
2.0
4
Cheats
Owner:
Iorek
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
19 hours ago
Latest Version:
0.1.1 (18 hours ago)
Factorio version:
2.0
Downloaded by:
4 users

Adds a recipe to the matter fabricator to make vita in SE

does this
-- data-final-fixes.lua

if not mods["space-exploration"] then
return
end

require("prototypes.recipe-space")
local data_util = require("space-exploration/data_util")

-- 2. Reference fusion technology
local tech = data.raw["technology"][data_util.mod_prefix .. "space-matter-fusion"]
if tech and tech.effects then
-- 3. Add Vitamelange recipe to its unlocks
table.insert(tech.effects, {
type = "unlock-recipe",
recipe = data_util.mod_prefix .. "matter-fusion-vitamelange"
})
end

-- prototypes/recipe-space.lua

local data_util = require("space-exploration/data_util")
local make_recipe = data_util.make_recipe

make_recipe({
name = data_util.mod_prefix .. "matter-fusion-vitamelange",
ingredients = {
{ type = "item", name = data_util.mod_prefix .. "fusion-test-data", amount = 1, ignored_by_stats = 1 },
{ type = "fluid", name = data_util.mod_prefix .. "particle-stream", amount = 50 },
{ type = "fluid", name = data_util.mod_prefix .. "space-coolant-supercooled", amount = 25 },
},
results = {
{ type = "item", name = data_util.mod_prefix .. "vitamelange", amount = 1 },
{ type = "item", name = data_util.mod_prefix .. "contaminated-scrap", amount = 1 },
{ type = "item", name = data_util.mod_prefix .. "fusion-test-data", amount_min = 1, amount_max = 1, probability = 0.99, ignored_by_stats = 1 },
{ type = "item", name = data_util.mod_prefix .. "junk-data", amount_min = 1, amount_max = 1, probability = 0.01 },
{ type = "fluid", name = data_util.mod_prefix .. "space-coolant-hot", amount = 25 },
},
energy_required = 3,
category = "space-materialisation",
icons = data_util.transition_icons(
{
icon = data.raw.fluid[data_util.mod_prefix .. "particle-stream"].icon,
icon_size = data.raw.fluid[data_util.mod_prefix .. "particle-stream"].icon_size,
scale = 0.5
},
{
icon = data.raw.item[data_util.mod_prefix .. "vitamelange"].icon,
icon_size = data.raw.item[data_util.mod_prefix .. "vitamelange"].icon_size,
scale = 0.5
}
),
subgroup = "materialisation",
enabled = false,
allow_as_intermediate = false,
always_show_made_in = true,
allow_decomposition = false,
hide_from_signal_gui = false,
localised_name = {"recipe-name.se-matter-fusion-to", {"item-name." .. data_util.mod_prefix .. "vitamelange"}},
order = "a-h"
})