#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_TERRAIN_PATTERN OUTER_TERRAIN_PATTERN IMAGESTEM
    {TERRAIN_ADJACENT_CORNER  {INNER_TERRAIN_PATTERN} {OUTER_TERRAIN_PATTERN} {OUTER_TERRAIN_PATTERN} 52,76 {IMAGESTEM}-convex}
    {TERRAIN_ADJACENT_CORNER  {OUTER_TERRAIN_PATTERN} {INNER_TERRAIN_PATTERN} {INNER_TERRAIN_PATTERN} 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_NAME
    [terrain_graphics]
        map="
, *
* , *
, 1
* , *
, *"

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

        probability={PROB}

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

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

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

        probability={PROB}

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

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

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

        probability={PROB}

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