#textdomain wesnoth
#-----------------------------------------------------------------
# Forest<->Castle|Encampment special cases
#-----------------------------------------------------------------
#define FORESTADJCASTLEA FOREST_ID ID PROB TILE_IMAGE
    [terrain_graphics]
        map="
,  1
*,   1
,  2
*,   *
,  *"

        [tile]
            pos=1
            type={ID}
        [/tile]

        [tile]
            pos=2
            type={FOREST_ID}
            no_flag="overlay"
            set_flag="overlay"
        [/tile]

        probability={PROB}
        rotations=n,ne,se,s,sw,nw

        [image]
            name={TILE_IMAGE}
            base=90,144
        [/image]
    [/terrain_graphics]
#enddef

#define FORESTADJCASTLES FOREST_ID ID PROB TILE_IMAGE
    [terrain_graphics]
        map="
,  1
*,   *
,  2
*,   1
,  *"

        [tile]
            pos=1
            type={ID}
        [/tile]

        [tile]
            pos=2
            type={FOREST_ID}
            no_flag="overlay"
            set_flag="overlay"
        [/tile]

        probability={PROB}
        rotations=n,ne,se,s,sw,nw

        [image]
            name={TILE_IMAGE}
            base=90,144
        [/image]
    [/terrain_graphics]
#enddef

#define FORESTADJCASTLEO FOREST_ID ID PROB TILE_IMAGE
    [terrain_graphics]
        map="
,  1
*,   *
,  2
*,   *
,  1"

        [tile]
            pos=1
            type={ID}
        [/tile]

        [tile]
            pos=2
            type={FOREST_ID}
            no_flag="overlay"
            set_flag="overlay"
        [/tile]

        probability={PROB}
        rotations=n,ne,se,s,sw,nw

        [image]
            name={TILE_IMAGE}
            base=90,144
        [/image]
    [/terrain_graphics]
#enddef

#define FORESTADJCASTLE FOREST_ID ID PROB TILE_IMAGE
    [terrain_graphics]
        map="
,  1
*,   *
,  2
*,   *
,  *"

        [tile]
            pos=1
            type={ID}
        [/tile]

        [tile]
            pos=2
            type={FOREST_ID}
            no_flag="overlay"
            set_flag="overlay"
        [/tile]

        probability={PROB}
        rotations=n,ne,se,s,sw,nw

        [image]
            name={TILE_IMAGE}-@R0
            base=90,144
        [/image]
    [/terrain_graphics]
#enddef

#-----------------------------------------------------------------
# Use a smaller tile when next to:
# Shallow and deep Water, mountain, desert hill & mountain,
# swamp and villages
#-----------------------------------------------------------------
#define FORESTADJ FOREST_ID ID PROB TILE_IMAGE
    [terrain_graphics]
        map="
,  1
*,   *
,  2
*,   *
,  *"

        [tile]
            pos=1
            type={ID}
        [/tile]

        [tile]
            pos=2
            type={FOREST_ID}
            no_flag="overlay"
            set_flag="overlay"
        [/tile]

        probability={PROB}
        rotations=n,ne,se,s,sw,nw

        [image]
            name={TILE_IMAGE}
            base=90,144
        [/image]
    [/terrain_graphics]
#enddef

#define MOUNTAINADJCASTLEA FOREST_ID ID PROB TILE_IMAGE
    [terrain_graphics]
        map="
,  1
*,   1
,  2
*,   *
,  *"

        [tile]
            pos=1
            type={ID}
        [/tile]

        [tile]
            pos=2
            type={FOREST_ID}
            no_flag="overlay"
            set_flag="overlay"
        [/tile]

        probability={PROB}
        rotations=n,ne,se,s,sw,nw

        [image]
            name={TILE_IMAGE}-@R0-@R1
            base=90,144
        [/image]
    [/terrain_graphics]
#enddef
