IS_HERO/IS_LOYAL: use [object] instead of overlays=
This commit is contained in:
parent
0ba433203e
commit
99fe4293c0
1 changed files with 16 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue