Original version
This commit is contained in:
parent
9a335fbe36
commit
84df859fb5
40 changed files with 2708 additions and 0 deletions
171
Chromium2/prototypes/chromium-recipe-se.lua
Normal file
171
Chromium2/prototypes/chromium-recipe-se.lua
Normal file
|
@ -0,0 +1,171 @@
|
|||
-- Additional recipes if Space Exploration mod is enabled
|
||||
local util = require("data-util")
|
||||
|
||||
if mods["space-exploration"] then
|
||||
se_delivery_cannon_recipes["chromite-ore"] = {name= "chromite-ore"}
|
||||
se_delivery_cannon_recipes["chromium-plate"] = {name= "chromium-plate"}
|
||||
se_delivery_cannon_recipes["heat-resistant-low-density-structure"] = {name= "heat-resistant-low-density-structure"}
|
||||
util.se_landfill({ore="chromite-ore"})
|
||||
|
||||
if string.sub(mods["space-exploration"], 1, 3) == "0.6" then
|
||||
util.se_matter({ore="chromite-ore", energy_required=1, quant_out=10, stream_out=60})
|
||||
data:extend({
|
||||
{
|
||||
type = "item-subgroup",
|
||||
name = "chromium",
|
||||
group = "resources",
|
||||
order = "a-h-z-a",
|
||||
}
|
||||
})
|
||||
util.set_item_subgroup("chromium-plate", "chromium")
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
name = "chromium-ingot",
|
||||
icons = {{icon = "__Chromium__/graphics/icons/chromium-ingot.png", icon_size = 64}},
|
||||
order = "b-b",
|
||||
stack_size = 50,
|
||||
subgroup = "chromium",
|
||||
},
|
||||
{
|
||||
type = "fluid",
|
||||
name = "molten-chromium",
|
||||
default_temperature = 232,
|
||||
max_temperature = 232,
|
||||
base_color = {r=191, g=219, b=233},
|
||||
flow_color = {r=191, g=219, b=233},
|
||||
icons = {{icon = "__Chromium__/graphics/icons/molten-chromium.png", icon_size = 64}},
|
||||
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-chromium",
|
||||
subgroup = "chromium",
|
||||
results = {
|
||||
{type = "fluid", name = "molten-chromium", amount = mods["Krastorio2"] and 750 or 900},
|
||||
},
|
||||
energy_required = 45,
|
||||
ingredients = {
|
||||
{name = mods["Krastorio2"] and "enriched-chromium" or "chromite-ore", 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 = "chromium-ingot",
|
||||
category = "casting",
|
||||
results = {{"chromium-ingot", 1}},
|
||||
energy_required = 18.75,
|
||||
ingredients = {
|
||||
{type = "fluid", name = "molten-chromium", amount = 250},
|
||||
},
|
||||
enabled = false,
|
||||
always_show_made_in = true,
|
||||
allow_as_intermediate = false,
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
category = "crafting",
|
||||
name = "chromium-ingot-to-plate",
|
||||
|
||||
icons = {
|
||||
{icon = "__Chromium__/graphics/icons/chromium-plate.png", icon_size = 64},
|
||||
{icon = "__Chromium__/graphics/icons/chromium-ingot.png", icon_size = 32, scale = 0.125, shift = {-8, -8}},
|
||||
},
|
||||
results = {
|
||||
{name = "chromium-plate", amount = 10},
|
||||
},
|
||||
energy_required = 3.75,
|
||||
ingredients = {
|
||||
{name = "chromium-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-chromium"})
|
||||
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "chromium-ingot"})
|
||||
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "chromium-ingot-to-plate"})
|
||||
util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "molten-chromium"})
|
||||
util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "chromium-ingot"})
|
||||
util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "chromium-ingot-to-plate"})
|
||||
if mods["Krastorio2"] then
|
||||
util.set_item_subgroup("enriched-chromium", "chromium")
|
||||
data.raw.recipe["enriched-chromium-plate"].order= "d[chromium-plate]"
|
||||
se_delivery_cannon_recipes["enriched-chromium"] = {name= "enriched-chromium"}
|
||||
end
|
||||
se_delivery_cannon_recipes["chromium-ingot"] = {name= "chromium-ingot"}
|
||||
|
||||
else
|
||||
data.raw.item["chromium-plate"].subgroup = "plates"
|
||||
if mods["Krastorio2"] then
|
||||
|
||||
data:extend({
|
||||
{
|
||||
type = "recipe",
|
||||
name = "enriched-chromium-smelting-vulcanite",
|
||||
category = "smelting",
|
||||
order = "d[chromium-plate]",
|
||||
energy_required = 18,
|
||||
enabled = false,
|
||||
always_show_made_in = true,
|
||||
allow_as_intermediate = false,
|
||||
ingredients = {
|
||||
{name = "enriched-chromium", amount = 8},
|
||||
{name = "se-vulcanite-block", amount = 1},
|
||||
},
|
||||
results = {
|
||||
{name = "chromium-plate", amount = 12},
|
||||
},
|
||||
icons =
|
||||
{
|
||||
{ icon = "__Chromium__/graphics/icons/chromium-plate.png", icon_size = 64},
|
||||
{ icon = "__space-exploration-graphics__/graphics/icons/vulcanite-block.png", icon_size = 32, scale=0.25, shift= {-10, -10}},
|
||||
},
|
||||
},
|
||||
})
|
||||
table.insert(data.raw.technology["se-processing-vulcanite"].effects,
|
||||
{type = "unlock-recipe", recipe= "enriched-chromium-smelting-vulcanite"})
|
||||
data.raw.recipe["enriched-chromium-plate"].order= "d[chromium-plate]"
|
||||
se_delivery_cannon_recipes["enriched-chromium"] = {name= "enriched-chromium"}
|
||||
else
|
||||
data:extend({
|
||||
{
|
||||
type = "recipe",
|
||||
name = "chromium-smelting-vulcanite",
|
||||
category = "smelting",
|
||||
order = "d[chromium-plate]",
|
||||
energy_required = 18,
|
||||
enabled = false,
|
||||
always_show_made_in = true,
|
||||
allow_as_intermediate = false,
|
||||
ingredients = {
|
||||
{name = "chromite-ore", amount = 8},
|
||||
{name = "se-vulcanite-block", amount = 1},
|
||||
},
|
||||
results = {
|
||||
{name = "chromium-plate", amount = 12},
|
||||
},
|
||||
icons =
|
||||
{
|
||||
{ icon = "__Chromium__/graphics/icons/chromium-plate.png", icon_size = 64},
|
||||
{ icon = "__space-exploration-graphics__/graphics/icons/vulcanite-block.png", icon_size = 32, scale=0.25, shift= {-10, -10}},
|
||||
},
|
||||
},
|
||||
})
|
||||
table.insert(data.raw.technology["se-processing-vulcanite"].effects,
|
||||
{type = "unlock-recipe", recipe= "chromium-smelting-vulcanite"})
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue