space exploration advanced founding
This commit is contained in:
parent
be2d6e6400
commit
ae88d8f26f
4 changed files with 95 additions and 36 deletions
|
|
@ -4,6 +4,7 @@ Date: 2022-02-02
|
||||||
Changes:
|
Changes:
|
||||||
- Refractory recipes: Remove "Imersium Plate" recipe - was not meant for endgame materials.
|
- Refractory recipes: Remove "Imersium Plate" recipe - was not meant for endgame materials.
|
||||||
- Refractory recipes: Add "rare-metals" recipes.
|
- Refractory recipes: Add "rare-metals" recipes.
|
||||||
|
- Refractory recipes: Change Space Exploration ore refractory recipes to new tech.
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.0.10
|
Version: 0.0.10
|
||||||
Date: 2022-01-31
|
Date: 2022-01-31
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ solid-fuel-from-coal=Make solid fuel from coal, a wasteful process.
|
||||||
foundry=__ITEM__foundry__
|
foundry=__ITEM__foundry__
|
||||||
electric-foundry=__ITEM__electric-foundry__
|
electric-foundry=__ITEM__electric-foundry__
|
||||||
advanced-founding=Advanced founding
|
advanced-founding=Advanced founding
|
||||||
|
advanced-founding-space=Advanced founding of offworld materials
|
||||||
|
|
||||||
[technology-description]
|
[technology-description]
|
||||||
foundry=Use heat for founding, coking, etc.
|
foundry=Use heat for founding, coking, etc.
|
||||||
|
|
|
||||||
|
|
@ -114,39 +114,84 @@ data:extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
if util.me.founding_plates() then
|
if util.me.founding_plates() then
|
||||||
data:extend({
|
data:extend({
|
||||||
{
|
{
|
||||||
type = "technology",
|
type = "technology",
|
||||||
name = "advanced-founding",
|
name = "advanced-founding",
|
||||||
icons = {
|
icons = {
|
||||||
{icon = "__bzfoundry__/graphics/icons/technology/foundry.png", icon_size = 256},
|
{icon = "__bzfoundry__/graphics/icons/technology/foundry.png", icon_size = 256},
|
||||||
(mods.bzcarbon and
|
(mods.bzcarbon and
|
||||||
{ icon = "__bzcarbon__/graphics/icons/graphite-2.png",
|
{ icon = "__bzcarbon__/graphics/icons/graphite-2.png",
|
||||||
icon_size = 128, scale=0.5, shift={32, -32}})
|
icon_size = 128, scale=0.5, shift={32, -32}})
|
||||||
or (mods.bzsilicon and
|
or (mods.bzsilicon and
|
||||||
{ icon = "__bzsilicon__/graphics/icons/silica.png",
|
{ icon = "__bzsilicon__/graphics/icons/silica.png",
|
||||||
icon_size = 64, scale=1, icon_mipmaps = 3, shift={32, -32}})
|
icon_size = 64, scale=1, icon_mipmaps = 3, shift={32, -32}})
|
||||||
or (mods.bzzirconium and
|
or (mods.bzzirconium and
|
||||||
{ icon = "__bzzirconium__/graphics/icons/zirconia.png",
|
{ icon = "__bzzirconium__/graphics/icons/zirconia.png",
|
||||||
icon_size = 128, scale=0.5, shift={32, -32}})
|
icon_size = 128, scale=0.5, shift={32, -32}})
|
||||||
or (mods.bzaluminum and
|
or (mods.bzaluminum and
|
||||||
{ icon = "__bzaluminum__/graphics/icons/alumina.png",
|
{ icon = "__bzaluminum__/graphics/icons/alumina.png",
|
||||||
icon_size = 128, scale=0.5, shift={32, -32}})
|
icon_size = 128, scale=0.5, shift={32, -32}})
|
||||||
or { icon = "__base__/graphics/icons/stone-brick.png",
|
or { icon = "__base__/graphics/icons/stone-brick.png",
|
||||||
icon_size = 64, scale=1, icon_mipmaps = 4, shift={32, -32}}
|
icon_size = 64, scale=1, icon_mipmaps = 4, shift={32, -32}}
|
||||||
},
|
},
|
||||||
effects = {},
|
effects = {},
|
||||||
prerequisites = {"electric-foundry", "utility-science-pack"},
|
prerequisites = {"electric-foundry", "utility-science-pack"},
|
||||||
unit = {
|
unit = {
|
||||||
count = 1000,
|
count = 1000,
|
||||||
ingredients = {{"automation-science-pack", 1},
|
ingredients = {{"automation-science-pack", 1},
|
||||||
{"logistic-science-pack", 1},
|
{"logistic-science-pack", 1},
|
||||||
{"chemical-science-pack", 1},
|
{"chemical-science-pack", 1},
|
||||||
{"production-science-pack", 1},
|
{"production-science-pack", 1},
|
||||||
{"utility-science-pack", 1}},
|
{"utility-science-pack", 1}},
|
||||||
time = 60,
|
time = 60,
|
||||||
},
|
},
|
||||||
order = "foundry",
|
order = "foundry",
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
if mods["space-exploration"] then
|
||||||
|
data:extend({
|
||||||
|
{
|
||||||
|
type = "technology",
|
||||||
|
name = "advanced-founding-space",
|
||||||
|
icons = {
|
||||||
|
{icon = "__bzfoundry__/graphics/icons/technology/foundry.png", icon_size = 256},
|
||||||
|
(mods.bzcarbon and
|
||||||
|
{ icon = "__bzcarbon__/graphics/icons/graphite-2.png",
|
||||||
|
icon_size = 128, scale=0.5, shift={32, -32}})
|
||||||
|
or (mods.bzsilicon and
|
||||||
|
{ icon = "__bzsilicon__/graphics/icons/silica.png",
|
||||||
|
icon_size = 64, scale=1, icon_mipmaps = 3, shift={32, -32}})
|
||||||
|
or (mods.bzzirconium and
|
||||||
|
{ icon = "__bzzirconium__/graphics/icons/zirconia.png",
|
||||||
|
icon_size = 128, scale=0.5, shift={32, -32}})
|
||||||
|
or (mods.bzaluminum and
|
||||||
|
{ icon = "__bzaluminum__/graphics/icons/alumina.png",
|
||||||
|
icon_size = 128, scale=0.5, shift={32, -32}})
|
||||||
|
or { icon = "__base__/graphics/icons/stone-brick.png",
|
||||||
|
icon_size = 64, scale=1, icon_mipmaps = 4, shift={32, -32}}
|
||||||
|
},
|
||||||
|
effects = {},
|
||||||
|
prerequisites = {
|
||||||
|
"advanced-founding",
|
||||||
|
"se-processing-holmium",
|
||||||
|
"se-processing-iridium",
|
||||||
|
"se-processing-beryllium",
|
||||||
|
},
|
||||||
|
unit = {
|
||||||
|
count = 1000,
|
||||||
|
ingredients = {
|
||||||
|
{"automation-science-pack", 1},
|
||||||
|
{"logistic-science-pack", 1},
|
||||||
|
{"chemical-science-pack", 1},
|
||||||
|
{"production-science-pack", 1},
|
||||||
|
{"utility-science-pack", 1},
|
||||||
|
{"se-rocket-science-pack", 1},
|
||||||
|
},
|
||||||
|
time = 60,
|
||||||
|
},
|
||||||
|
order = "foundry",
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,14 @@ function has_suffix(s, suffix)
|
||||||
return string.sub(s, -string.len(suffix), -1) == suffix
|
return string.sub(s, -string.len(suffix), -1) == suffix
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function has_prefix(s, prefix)
|
||||||
|
return string.sub(s, 1, string.len(prefix)) == prefix
|
||||||
|
end
|
||||||
|
|
||||||
|
function is_space(name)
|
||||||
|
return name:match("holmium") or name:match("beryllium") or name:match("iridium")
|
||||||
|
end
|
||||||
|
|
||||||
local suffixes = {"-plate", "-ingot"}
|
local suffixes = {"-plate", "-ingot"}
|
||||||
function check_name(name)
|
function check_name(name)
|
||||||
for i, suffix in pairs(suffixes) do
|
for i, suffix in pairs(suffixes) do
|
||||||
|
|
@ -211,7 +219,11 @@ if util.me.founding_plates() then
|
||||||
data:extend(new_recipes)
|
data:extend(new_recipes)
|
||||||
for i, recipe in pairs(new_recipes) do
|
for i, recipe in pairs(new_recipes) do
|
||||||
-- recipe unlock
|
-- recipe unlock
|
||||||
util.add_effect("advanced-founding", {type="unlock-recipe", recipe=recipe.name})
|
if is_space(recipe.name) and data.raw.technology["advanced-founding-space"] then
|
||||||
|
util.add_effect("advanced-founding-space", {type="unlock-recipe", recipe=recipe.name})
|
||||||
|
else
|
||||||
|
util.add_effect("advanced-founding", {type="unlock-recipe", recipe=recipe.name})
|
||||||
|
end
|
||||||
|
|
||||||
-- prod modules
|
-- prod modules
|
||||||
for j, module in pairs(data.raw.module) do
|
for j, module in pairs(data.raw.module) do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue