#textdomain wesnoth-dm

#define OBJECT_LOYAL
    # There are several changes of leader to hero & vice versa during the campaign,
    # so this object is given to any that may have hero status at some point to ensure
    # the unit has no upkeep and to avoid taking up another trait slot
    [object]
        [effect]
            apply_to=loyal
        [/effect]
    [/object]
#enddef

#define KALENZ
    id=Kalenz
    name= _"Kalenz"
    type=Elvish High Lord
    profile="portraits/kalenz.webp"
    unrenamable=yes
    [modifications]
        {OBJECT_LOYAL}
        {TRAIT_STRONG}
        {TRAIT_RESILIENT}
    [/modifications]
#enddef

#define YOUNG_DELFADOR
    id=Delfador
    name= _"Delfador"
    type=Journeyman Mage
    profile="portraits/younger_delfador.webp"
    unrenamable=yes
    [modifications]
        {OBJECT_LOYAL}
        {TRAIT_RESILIENT}
        {TRAIT_INTELLIGENT}
        [object]
            [effect]
                apply_to=profile
                [filter]
                    type=Mage Commander,Mage Magister
                [/filter]
                portrait=portraits/young_delfador.webp~RIGHT()
            [/effect]
        [/object]
    [/modifications]
#enddef

#define OLD_DELFADOR
    id=Delfador
    name= _"Delfador"
    type=Elder Mage
    profile="portraits/old_delfador.webp~RIGHT()"
    unrenamable=yes
    [modifications]
        {OBJECT_LOYAL}
        {TRAIT_RESILIENT}
        {TRAIT_INTELLIGENT}
    [/modifications]
#enddef

#define CHANTAL
    id=Chantal
    name=_ "Chantal"
    type=Elvish Druid
    profile=portraits/chantal-druid.webp
    unrenamable=yes
    [modifications]
        {OBJECT_LOYAL}
        {TRAIT_INTELLIGENT}
        {TRAIT_RESILIENT}
        [object]
            [effect]
                apply_to=profile
                [filter]
                    type=Elvish Shyde
                [/filter]
                portrait=portraits/chantal-shyde.webp
            [/effect]
        [/object]
    [/modifications]
#enddef

#define LIONEL
    id=Lionel
    name=_ "Lionel"
    type=General
    profile="portraits/lionel.webp"
    unrenamable=yes
    [modifications]
        {TRAIT_LOYAL_HERO_NOSLOT}
        {TRAIT_FEARLESS}
        {TRAIT_STRONG}
    [/modifications]
#enddef

#define ULREK
    id=Ulrek
    name= _ "Ulrek"
    type=Dwarvish Lord
    unrenamable=yes
    [modifications]
        {OBJECT_LOYAL}
        {TRAIT_QUICK}
        {TRAIT_STRONG}
    [/modifications]
#enddef

#define RELGORN
    id=Relgorn
    name= _ "Relgorn"
    type=Dwarvish Fighter
    unrenamable=yes # Shows up in HttT S14
    [modifications]
        {TRAIT_LOYAL_HERO_NOSLOT}
        {TRAIT_STRONG}
        {TRAIT_HEALTHY}
    [/modifications]
#enddef

#define METHOR
    id=Methor
    name=_"Methor"
    type=Mage of Light
    profile=portraits/methor.webp
    unrenamable=yes
    [modifications]
        {TRAIT_INTELLIGENT}
        {TRAIT_AGED}
    [/modifications]
#enddef

#define LEOLLYN
    id=Leollyn
    name= _ "Leollyn"
    type=Arch Mage
    profile=portraits/leollyn.webp
#enddef

#define GARARD_II
    id=Garard II
    name=_ "Garard II"
    type=King of Wesnoth
    profile="portraits/garard.webp"
#enddef

#define ZORLAN
    id=Zorlan
    name=_ "Zorlan"
    type=Orcish Sovereign
    profile="portraits/zorlan.webp"
#enddef

#define SAGUS
    id="Sagus"
    name=_ "Sagus"
    type=Lich
    profile="portraits/undead/brown-lich.webp"
    [modifications]
        {TRAIT_RESILIENT}
        {TRAIT_STRONG}
    [/modifications]
#enddef

#define ILIAH_MALAL TYPE
    id=Iliah-Malal
    name=_ "Iliah-Malal"
    type={TYPE}
    [modifications]
        {TRAIT_DEXTROUS}
        {TRAIT_RESILIENT}
    [/modifications]
#enddef
