Page 1 of 1

Customizable technology effect

Posted: Fri Dec 16, 2016 8:09 pm
by Mooncat
Request: a new technology effect type that allows customizable tooltip. It would be better if the icon can also be customized. No need to have actual effect to the gameplay.
Its format can be:

Code: Select all

effects =
{
    {
        type = "custom-effect",
        description = {"locale.perfection-bonus", 100},
        icon = "__core__/graphics/bonus-icon.png"
    }
}
So it allows something like this:
Image
It would be useful for mods like my Long Reach Research. :mrgreen:

(I have tried to achieve this with "give-item", but no luck. It turns out to be this bug report: Technology give-item with 0 count freezes the game and crash)

Re: Customizable technology effect

Posted: Thu Dec 29, 2016 9:01 pm
by aubergine18
This would be really useful for techs that are used purely to trigger updates in mod internal state rather than giving new recipies etc.

Re: Customizable technology effect

Posted: Sat Dec 31, 2016 2:30 am
by Rseding91
Added for 0.15.

Re: Customizable technology effect

Posted: Mon Jan 02, 2017 9:04 am
by Mooncat
Rseding91 wrote:Added for 0.15.
Thanks!! :D