#textdomain wesnoth

#
# Macros for compatibility with 1.5.0 and before.
# Contains some of the macros that were previously in _final.cfg.
#

#define TERRAIN_ADJACENT_CORNER_BOTH INNER OUTER IMAGESTEM
    {TERRAIN_ADJACENT_CORNER  {INNER} {OUTER} {OUTER} 52,76 {IMAGESTEM}-convex}
    {TERRAIN_ADJACENT_CORNER  {OUTER} {INNER} {INNER} 56,68 {IMAGESTEM}-concave}
#enddef

#define TERRAIN_OVERLAY_PROB TERRAIN_PATTERN FLAG PROB IMAGESTEM
    [terrain_graphics]
        [tile]
            x=0
            y=0
            type={TERRAIN_PATTERN}
            [image]
                layer=-1000
                name={IMAGESTEM}
            [/image]
        [/tile]
        probability={PROB}
        no_flag={FLAG}
        set_flag={FLAG}
    [/terrain_graphics]
#enddef

#Macro for Single Hex
#define SHEX TYPE FLAG PROB TILE
    [terrain_graphics]
        map="
, *
* , *
, 1
* , *
, *"

        [tile]
            pos=1
            type={TYPE}
            no_flag={FLAG}
            set_flag={FLAG}
        [/tile]

        probability={PROB}

        [image]
            name={TILE}
            base=90,146
        [/image]
    [/terrain_graphics]
#enddef

#Macro for Single Hex with double overlay
#define SHEX_DOUBLE TYPE FLAG PROB TILE1 TILE2
    [terrain_graphics]
        map="
, *
* , *
, 1
* , *
, *"

        [tile]
            pos=1
            type={TYPE}
            no_flag={FLAG}
            set_flag={FLAG}
        [/tile]

        probability={PROB}

        [image]
            name={TILE1}
            base=90,146
        [/image]
        [image]
            name={TILE2}
            base=90,146
        [/image]
    [/terrain_graphics]
#enddef

#define SHEX_LAYER TYPE FLAG LAYER PROB TILE
    [terrain_graphics]
        map="
, *
* , *
, 1
* , *
, *"

        [tile]
            pos=1
            type={TYPE}
            no_flag={FLAG}
            set_flag={FLAG}
        [/tile]

        probability={PROB}

        [image]
            name={TILE}
            layer={LAYER}
            base=90,146
        [/image]
    [/terrain_graphics]
#enddef
