IS_HERO/IS_LOYAL: use [object] instead of overlays=

This commit is contained in:
Charles Dang 2021-01-09 21:48:00 +11:00
parent 0ba433203e
commit 99fe4293c0

View file

@ -19,13 +19,27 @@
## so i'll leave it for now. since this icon is afaik not transparent though should not be a problem.
#define IS_HERO
# Embed this into a unit declaration to add a hero icon to the unit.
overlays="misc/hero-icon.png"
ellipse="misc/ellipse-hero"
[+modifications]
[object]
[effect]
apply_to=overlay
add="misc/hero-icon.png"
[/effect]
[/object]
[/modifications]
#enddef
#define IS_LOYAL
# Embed this into a unit declaration to add a loyalty icon to the unit.
overlays="misc/loyal-icon.png"
[+modifications]
[object]
[effect]
apply_to=overlay
add="misc/loyal-icon.png"
[/effect]
[/object]
[/modifications]
#enddef
#define IS_EXPENDABLE_LEADER