further compatibility, icons

This commit is contained in:
Brevven 2022-01-31 02:42:26 -08:00
parent 6d800abed6
commit 141211e02b
2 changed files with 20 additions and 6 deletions

View file

@ -113,14 +113,27 @@ data:extend({
})
if mods.bzcarbon and util.me.founding_plates() then
if util.me.founding_plates() then
data:extend({
{
type = "technology",
name = "advanced-founding",
icons = {
{icon = "__bzfoundry__/graphics/icons/technology/foundry.png", icon_size = 256},
{icon = "__bzcarbon__/graphics/icons/graphite.png", icon_size = 128, shift={-32, -32}},
(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 = {"electric-foundry", "utility-science-pack"},