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

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

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

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

         [image]
                 name={TILE}
                 base=90,144
         [/image]


[/terrain_graphics]
#enddef

#define FORESTADJCASTLES FID ID PROB TILE
[terrain_graphics]
      map="
,  1
*,   *
,  2
*,   1
,  *"

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

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

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

         [image]
                 name={TILE}
                 base=90,144
         [/image]


[/terrain_graphics]
#enddef

#define FORESTADJCASTLEO FID ID PROB TILE
[terrain_graphics]
      map="
,  1
*,   *
,  2
*,   *
,  1"

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

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

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

         [image]
                 name={TILE}
                 base=90,144
         [/image]


[/terrain_graphics]
#enddef

#define FORESTADJCASTLE FID ID PROB TILE
[terrain_graphics]
      map="
,  1
*,   *
,  2
*,   *
,  *"

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

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

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

         [image]
                 name={TILE}-@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 FID ID PROB TILE
[terrain_graphics]
      map="
,  1
*,   *
,  2
*,   *
,  *"

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

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

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

         [image]
                 name={TILE}
                 base=90,144
         [/image]


[/terrain_graphics]
#enddef

#define MOUNTAINADJCASTLEA FID ID PROB TILE
[terrain_graphics]
      map="
,  1
*,   1
,  2
*,   *
,  *"

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

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

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

         [image]
                 name={TILE}-@R0-@R1
                 base=90,144
         [/image]


[/terrain_graphics]
#enddef
