local technology={
type = "technology",
name = "logistics-teleportation",
icon = "__base__/graphics/technology/logistics.png",
effects ={},
prerequisites = {"logistics-3", "automation-3"},
unit = table.deepcopy(data.raw.technology['logistics-3'].unit),
order = table.deepcopy(data.raw.technology['logistics-3'].order),
}
technology.unit.count=technology.unit.count*3
-- we can also use compound icons these days
technology.icon=nil
technology.icons=
{
{
icon = "__base__/graphics/icons/fusion-reactor-equipment.png",
},
{
icon = "__base__/graphics/technology/logistics.png",
tint = {r= 1, g = 0, b = 1, a = 1},
}
}
data:extend{technology}
I may be wrong, but it'd be good to have that explained somewhere.
Re: [0.14.22] Cannot use compound icons in technology
Posted: Tue Feb 07, 2017 10:15 pm
by Rseding91
The icons property isn't supported for technologies in 0.14. I added support for it in 0.15.