128 lines
4.2 KiB
Lua
128 lines
4.2 KiB
Lua
-- Additional recipes if Space Exploration mod is enabled
|
|
local util = require("data-util");
|
|
|
|
if mods["space-exploration"] then
|
|
se_delivery_cannon_recipes["aluminum-ore"] = {name= "aluminum-ore"}
|
|
se_delivery_cannon_recipes["alumina"] = {name= "alumina"}
|
|
se_delivery_cannon_recipes["aluminum-plate"] = {name= "aluminum-plate"}
|
|
se_delivery_cannon_recipes["aluminum-2219"] = {name= "aluminum-2219"}
|
|
se_delivery_cannon_recipes["aluminum-6061"] = {name= "aluminum-6061"}
|
|
util.se_landfill({ore="aluminum-ore"})
|
|
|
|
-- Space Exploration requires more aluminum than copper
|
|
se_resources["aluminum-ore"] = {
|
|
order = "b-z",
|
|
has_starting_area_placement = true,
|
|
base_density = 12,
|
|
starting_rq_factor_multiplier = 1.5,
|
|
}
|
|
|
|
se_resources["copper-ore"] = {
|
|
order = "c-b",
|
|
has_starting_area_placement = true,
|
|
base_density = 9,
|
|
starting_rq_factor_multiplier = 1.5,
|
|
}
|
|
|
|
util.se_matter({ore="aluminum-ore", energy_required=1, quant_out=10, stream_out=60})
|
|
data:extend({
|
|
{
|
|
type = "item-subgroup",
|
|
name = "aluminum",
|
|
group = "resources",
|
|
order = "a-h-z-a",
|
|
}
|
|
})
|
|
util.set_item_subgroup("aluminum-ore", "aluminum")
|
|
util.set_item_subgroup("alumina", "aluminum")
|
|
util.set_item_subgroup("aluminum-plate", "aluminum")
|
|
data:extend({
|
|
{
|
|
type = "item",
|
|
name = "aluminum-ingot",
|
|
icons = {{icon = "__bzaluminum__/graphics/icons/aluminum-ingot.png", icon_size = 128}},
|
|
order = "b-b",
|
|
stack_size = 50,
|
|
subgroup = "aluminum",
|
|
},
|
|
{
|
|
type = "fluid",
|
|
name = "molten-aluminum",
|
|
default_temperature = 660,
|
|
max_temperature = 660,
|
|
base_color = {r=230, g=230, b=220},
|
|
flow_color = {r=230, g=230, b=220},
|
|
icons = {{icon = "__bzaluminum__/graphics/icons/molten-aluminum.png", icon_size = 128}},
|
|
order = "a[molten]-a",
|
|
pressure_to_speed_ratio = 0.4,
|
|
flow_to_energy_ratio = 0.59,
|
|
auto_barrel = false,
|
|
subgroup = "fluid",
|
|
},
|
|
{
|
|
type = "recipe",
|
|
category = "smelting",
|
|
name = "molten-aluminum",
|
|
main_product = "molten-aluminum",
|
|
subgroup = "aluminum",
|
|
results = {
|
|
{type = "fluid", name = "molten-aluminum", amount = mods.Krastorio2 and 750 or 900},
|
|
},
|
|
energy_required = 60,
|
|
ingredients = {
|
|
{ type = "item", name = "alumina", amount = 24},
|
|
{type = "fluid", name = "se-pyroflux", amount = 10},
|
|
},
|
|
enabled = false,
|
|
always_show_made_in = true,
|
|
allow_as_intermediate = false,
|
|
order = "a-a"
|
|
},
|
|
{
|
|
type = "recipe",
|
|
name = "aluminum-ingot",
|
|
category = "casting",
|
|
results = {{type="item", name="aluminum-ingot", amount=1}},
|
|
energy_required = 25,
|
|
ingredients = {
|
|
{type = "fluid", name = "molten-aluminum", amount = 250},
|
|
},
|
|
enabled = false,
|
|
always_show_made_in = true,
|
|
allow_as_intermediate = false,
|
|
},
|
|
{
|
|
type = "recipe",
|
|
category = "crafting",
|
|
name = "aluminum-ingot-to-plate",
|
|
|
|
icons = {
|
|
{icon = "__bzaluminum__/graphics/icons/aluminum-plate.png", icon_size = 128, icon_mipmaps = 3},
|
|
{icon = "__bzaluminum__/graphics/icons/aluminum-ingot.png", icon_size = 128, scale = 0.125, shift = {-8, -8}},
|
|
},
|
|
results = {
|
|
{ type = "item", name = "aluminum-plate", amount = 10},
|
|
},
|
|
energy_required = 5,
|
|
ingredients = {
|
|
{ type = "item", name = "aluminum-ingot", amount = 1}
|
|
},
|
|
enabled = false,
|
|
always_show_made_in = true,
|
|
allow_decomposition = false,
|
|
order = "a-c-b"
|
|
},
|
|
})
|
|
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "molten-aluminum"})
|
|
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "aluminum-ingot"})
|
|
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "aluminum-ingot-to-plate"})
|
|
util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "molten-aluminum"})
|
|
util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "aluminum-ingot"})
|
|
util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "aluminum-ingot-to-plate"})
|
|
if mods["Krastorio2"] then
|
|
se_delivery_cannon_recipes["enriched-aluminum"] = {name= "enriched-aluminum"}
|
|
util.set_item_subgroup("enriched-aluminum", "aluminum")
|
|
end
|
|
se_delivery_cannon_recipes["aluminum-ingot"] = {name= "aluminum-ingot"}
|
|
|
|
end
|