#textdomain wesnoth
#-----------------------------------------------------------------
# Definitions for cases where an overlay should only be drawn
# if it's adjacent to at least 1, 2 or 3 hexes of another type.
# The overlay will be always the same, i.e there are no variants for
# rotations.
#
# Commonly used to draw smaller overlays when next to other terrains
# (e.g. small forest when next to castles).
#-----------------------------------------------------------------

#
# TERRAIN is next to at least one ADJACENT-hex
#
#define OVERLAY_RESTRICTED_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
    [terrain_graphics]
        map="
,  2
*,   *
,  1
*,   *
,  *"

        [tile]
            pos=2
            type={ADJACENT}
        [/tile]

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

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

        [image]
            name={IMAGESTEM}
            base=90,144
            center=90,144
            layer={LAYER}
        [/image]
    [/terrain_graphics]
#enddef

#meta-macro OVERLAY_RESTRICTED TERRAIN ADJACENT P=PROB=100 L=LAYER=0 F=FLAG=overlay IMAGESTEM

#
# TERRAIN ist next to at least two ADJACENT-hexes
# (helper macros)
#

#define OVERLAY_RESTRICTED2_N_NE_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
    [terrain_graphics]
        map="
,  2
*,   2
,  1
*,   *
,  *"

        [tile]
            pos=2
            type={ADJACENT}
        [/tile]

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

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

        [image]
            name={IMAGESTEM}
            base=90,144
            center=90,144
            layer={LAYER}
        [/image]
    [/terrain_graphics]
#enddef

#define OVERLAY_RESTRICTED2_N_SE_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
    [terrain_graphics]
        map="
,  2
*,   *
,  1
*,   2
,  *"

        [tile]
            pos=2
            type={ADJACENT}
        [/tile]

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

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

        [image]
            name={IMAGESTEM}
            base=90,144
            center=90,144
            layer={LAYER}
        [/image]
    [/terrain_graphics]
#enddef

#define OVERLAY_RESTRICTED2_N_S_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
    [terrain_graphics]
        map="
,  2
*,   *
,  1
*,   *
,  2"

        [tile]
            pos=2
            type={ADJACENT}
        [/tile]

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

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

        [image]
            name={IMAGESTEM}
            base=90,144
            center=90,144
            layer={LAYER}
        [/image]
    [/terrain_graphics]
#enddef

#
# TERRAIN ist next to at least two ADJACENT-hexes
#
#define OVERLAY_RESTRICTED2_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
    {OVERLAY_RESTRICTED2_N_NE_PLF ({TERRAIN}) ({ADJACENT}) {PROB} {LAYER} {FLAG} {IMAGESTEM}}
    {OVERLAY_RESTRICTED2_N_SE_PLF ({TERRAIN}) ({ADJACENT}) {PROB} {LAYER} {FLAG} {IMAGESTEM}}
    {OVERLAY_RESTRICTED2_N_S_PLF  ({TERRAIN}) ({ADJACENT}) {PROB} {LAYER} {FLAG} {IMAGESTEM}}
#enddef

#meta-macro OVERLAY_RESTRICTED2 TERRAIN ADJACENT P=PROB=100 L=LAYER=0 F=FLAG=overlay IMAGESTEM

#
# TERRAIN ist next to at least three ADJACENT-hexes
# (helper macros)
#

#define OVERLAY_RESTRICTED3_N_NE_SE_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
    [terrain_graphics]
        map="
,  2
*,   2
,  1
*,   2
,  *"

        [tile]
            pos=2
            type={ADJACENT}
        [/tile]

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

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

        [image]
            name={IMAGESTEM}
            base=90,144
            center=90,144
            layer={LAYER}
        [/image]
    [/terrain_graphics]
#enddef

#define OVERLAY_RESTRICTED3_N_NE_S_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
    [terrain_graphics]
        map="
,  2
*,   2
,  1
*,   *
,  2"

        [tile]
            pos=2
            type={ADJACENT}
        [/tile]

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

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

        [image]
            name={IMAGESTEM}
            base=90,144
            center=90,144
            layer={LAYER}
        [/image]
    [/terrain_graphics]
#enddef

#define OVERLAY_RESTRICTED3_N_NE_SW_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
    [terrain_graphics]
        map="
,  2
*,   2
,  1
2,   *
,  *"

        [tile]
            pos=2
            type={ADJACENT}
        [/tile]

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

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

        [image]
            name={IMAGESTEM}
            base=90,144
            center=90,144
            layer={LAYER}
        [/image]
    [/terrain_graphics]
#enddef

#define OVERLAY_RESTRICTED3_N_SE_SW_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
    [terrain_graphics]
        map="
,  2
*,   *
,  1
2,   2
,  *"

        [tile]
            pos=2
            type={ADJACENT}
        [/tile]

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

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

        [image]
            name={IMAGESTEM}
            base=90,144
            center=90,144
            layer={LAYER}
        [/image]
    [/terrain_graphics]
#enddef

#
# TERRAIN ist next to at least three ADJACENT-hexes
#
#define OVERLAY_RESTRICTED3_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
    {OVERLAY_RESTRICTED3_N_NE_SE_PLF ({TERRAIN}) ({ADJACENT}) {PROB} {LAYER} {FLAG} {IMAGESTEM}}
    {OVERLAY_RESTRICTED3_N_NE_S_PLF  ({TERRAIN}) ({ADJACENT}) {PROB} {LAYER} {FLAG} {IMAGESTEM}}
    {OVERLAY_RESTRICTED3_N_NE_SW_PLF ({TERRAIN}) ({ADJACENT}) {PROB} {LAYER} {FLAG} {IMAGESTEM}}
    {OVERLAY_RESTRICTED3_N_SE_SW_PLF ({TERRAIN}) ({ADJACENT}) {PROB} {LAYER} {FLAG} {IMAGESTEM}}
#enddef

#meta-macro OVERLAY_RESTRICTED3 TERRAIN ADJACENT P=PROB=100 L=LAYER=0 F=FLAG=overlay IMAGESTEM

#define TRANSITION_RESTRICTED_PLBF TERRAIN ADJACENT PROB LAYER BASE FLAG IMAGESTEM
    [terrain_graphics]
        map="
,  2
*,   *
,  1
*,   *
,  *"

        [tile]
            pos=2
            type={ADJACENT}
        [/tile]

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

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

        [image]
            name={IMAGESTEM}-@R0
            layer={LAYER}
            base={BASE}
            center=90,144
        [/image]
    [/terrain_graphics]
#enddef

#meta-macro TRANSITION_RESTRICTED TERRAIN  ADJACENT P=PROB=100 L=LAYER=0 B=BASE=(90,144) F=FLAG=overlay IMAGESTEM

#define TRANSITION_RESTRICTED2_PLBF TERRAIN ADJACENT PROB LAYER BASE FLAG IMAGESTEM
    [terrain_graphics]
        map="
,  2
*,   2
,  1
*,   *
,  *"
        [tile]
            pos=1
            type={TERRAIN}

            no_flag={FLAG}
            set_flag={FLAG}
        [/tile]
        [tile]
            pos=2
            type={ADJACENT}
        [/tile]

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

        [image]
            layer={LAYER}
            base={BASE}
            name={IMAGESTEM}-@R0-@R1
            center=90,144
        [/image]
    [/terrain_graphics]
#enddef

#meta-macro TRANSITION_RESTRICTED2 TERRAIN  ADJACENT P=PROB=100 L=LAYER=0 B=BASE=(90,144) F=FLAG=overlay IMAGESTEM

#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro OVERLAY_RESTRICTED TERRAIN ADJACENT P=PROB=100 L=LAYER=0 F=FLAG=overlay IMAGESTEM
#Please do not modify
#define OVERLAY_RESTRICTED_LF TERRAIN ADJACENT LAYER FLAG IMAGESTEM
    {OVERLAY_RESTRICTED_PLF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) ({FLAG}) ({IMAGESTEM})}
#enddef
#define OVERLAY_RESTRICTED_PF TERRAIN ADJACENT PROB FLAG IMAGESTEM
    {OVERLAY_RESTRICTED_PLF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 ({FLAG}) ({IMAGESTEM})}
#enddef
#define OVERLAY_RESTRICTED_F TERRAIN ADJACENT FLAG IMAGESTEM
    {OVERLAY_RESTRICTED_PLF ({TERRAIN}) ({ADJACENT}) 100 0 ({FLAG}) ({IMAGESTEM})}
#enddef
#define OVERLAY_RESTRICTED_PL TERRAIN ADJACENT PROB LAYER IMAGESTEM
    {OVERLAY_RESTRICTED_PLF ({TERRAIN}) ({ADJACENT}) ({PROB}) ({LAYER}) overlay ({IMAGESTEM})}
#enddef
#define OVERLAY_RESTRICTED_L TERRAIN ADJACENT LAYER IMAGESTEM
    {OVERLAY_RESTRICTED_PLF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) overlay ({IMAGESTEM})}
#enddef
#define OVERLAY_RESTRICTED_P TERRAIN ADJACENT PROB IMAGESTEM
    {OVERLAY_RESTRICTED_PLF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 overlay ({IMAGESTEM})}
#enddef
#define OVERLAY_RESTRICTED TERRAIN ADJACENT IMAGESTEM
    {OVERLAY_RESTRICTED_PLF ({TERRAIN}) ({ADJACENT}) 100 0 overlay ({IMAGESTEM})}
#enddef
#end of generated code
#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro OVERLAY_RESTRICTED2 TERRAIN ADJACENT P=PROB=100 L=LAYER=0 F=FLAG=overlay IMAGESTEM
#Please do not modify
#define OVERLAY_RESTRICTED2_LF TERRAIN ADJACENT LAYER FLAG IMAGESTEM
    {OVERLAY_RESTRICTED2_PLF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) ({FLAG}) ({IMAGESTEM})}
#enddef
#define OVERLAY_RESTRICTED2_PF TERRAIN ADJACENT PROB FLAG IMAGESTEM
    {OVERLAY_RESTRICTED2_PLF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 ({FLAG}) ({IMAGESTEM})}
#enddef
#define OVERLAY_RESTRICTED2_F TERRAIN ADJACENT FLAG IMAGESTEM
    {OVERLAY_RESTRICTED2_PLF ({TERRAIN}) ({ADJACENT}) 100 0 ({FLAG}) ({IMAGESTEM})}
#enddef
#define OVERLAY_RESTRICTED2_PL TERRAIN ADJACENT PROB LAYER IMAGESTEM
    {OVERLAY_RESTRICTED2_PLF ({TERRAIN}) ({ADJACENT}) ({PROB}) ({LAYER}) overlay ({IMAGESTEM})}
#enddef
#define OVERLAY_RESTRICTED2_L TERRAIN ADJACENT LAYER IMAGESTEM
    {OVERLAY_RESTRICTED2_PLF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) overlay ({IMAGESTEM})}
#enddef
#define OVERLAY_RESTRICTED2_P TERRAIN ADJACENT PROB IMAGESTEM
    {OVERLAY_RESTRICTED2_PLF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 overlay ({IMAGESTEM})}
#enddef
#define OVERLAY_RESTRICTED2 TERRAIN ADJACENT IMAGESTEM
    {OVERLAY_RESTRICTED2_PLF ({TERRAIN}) ({ADJACENT}) 100 0 overlay ({IMAGESTEM})}
#enddef
#end of generated code
#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro OVERLAY_RESTRICTED3 TERRAIN ADJACENT P=PROB=100 L=LAYER=0 F=FLAG=overlay IMAGESTEM
#Please do not modify
#define OVERLAY_RESTRICTED3_LF TERRAIN ADJACENT LAYER FLAG IMAGESTEM
    {OVERLAY_RESTRICTED3_PLF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) ({FLAG}) ({IMAGESTEM})}
#enddef
#define OVERLAY_RESTRICTED3_PF TERRAIN ADJACENT PROB FLAG IMAGESTEM
    {OVERLAY_RESTRICTED3_PLF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 ({FLAG}) ({IMAGESTEM})}
#enddef
#define OVERLAY_RESTRICTED3_F TERRAIN ADJACENT FLAG IMAGESTEM
    {OVERLAY_RESTRICTED3_PLF ({TERRAIN}) ({ADJACENT}) 100 0 ({FLAG}) ({IMAGESTEM})}
#enddef
#define OVERLAY_RESTRICTED3_PL TERRAIN ADJACENT PROB LAYER IMAGESTEM
    {OVERLAY_RESTRICTED3_PLF ({TERRAIN}) ({ADJACENT}) ({PROB}) ({LAYER}) overlay ({IMAGESTEM})}
#enddef
#define OVERLAY_RESTRICTED3_L TERRAIN ADJACENT LAYER IMAGESTEM
    {OVERLAY_RESTRICTED3_PLF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) overlay ({IMAGESTEM})}
#enddef
#define OVERLAY_RESTRICTED3_P TERRAIN ADJACENT PROB IMAGESTEM
    {OVERLAY_RESTRICTED3_PLF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 overlay ({IMAGESTEM})}
#enddef
#define OVERLAY_RESTRICTED3 TERRAIN ADJACENT IMAGESTEM
    {OVERLAY_RESTRICTED3_PLF ({TERRAIN}) ({ADJACENT}) 100 0 overlay ({IMAGESTEM})}
#enddef
#end of generated code
#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro TRANSITION_RESTRICTED TERRAIN  ADJACENT P=PROB=100 L=LAYER=0 B=BASE=(90,144) F=FLAG=overlay IMAGESTEM
#Please do not modify
#define TRANSITION_RESTRICTED_LBF TERRAIN ADJACENT LAYER BASE FLAG IMAGESTEM
    {TRANSITION_RESTRICTED_PLBF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) ({BASE}) ({FLAG}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_PBF TERRAIN ADJACENT PROB BASE FLAG IMAGESTEM
    {TRANSITION_RESTRICTED_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 ({BASE}) ({FLAG}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_BF TERRAIN ADJACENT BASE FLAG IMAGESTEM
    {TRANSITION_RESTRICTED_PLBF ({TERRAIN}) ({ADJACENT}) 100 0 ({BASE}) ({FLAG}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) ({LAYER}) (90,144) ({FLAG}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_LF TERRAIN ADJACENT LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED_PLBF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) (90,144) ({FLAG}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_PF TERRAIN ADJACENT PROB FLAG IMAGESTEM
    {TRANSITION_RESTRICTED_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 (90,144) ({FLAG}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_F TERRAIN ADJACENT FLAG IMAGESTEM
    {TRANSITION_RESTRICTED_PLBF ({TERRAIN}) ({ADJACENT}) 100 0 (90,144) ({FLAG}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_PLB TERRAIN ADJACENT PROB LAYER BASE IMAGESTEM
    {TRANSITION_RESTRICTED_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) ({LAYER}) ({BASE}) overlay ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_LB TERRAIN ADJACENT LAYER BASE IMAGESTEM
    {TRANSITION_RESTRICTED_PLBF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) ({BASE}) overlay ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_PB TERRAIN ADJACENT PROB BASE IMAGESTEM
    {TRANSITION_RESTRICTED_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 ({BASE}) overlay ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_B TERRAIN ADJACENT BASE IMAGESTEM
    {TRANSITION_RESTRICTED_PLBF ({TERRAIN}) ({ADJACENT}) 100 0 ({BASE}) overlay ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_PL TERRAIN ADJACENT PROB LAYER IMAGESTEM
    {TRANSITION_RESTRICTED_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) ({LAYER}) (90,144) overlay ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_L TERRAIN ADJACENT LAYER IMAGESTEM
    {TRANSITION_RESTRICTED_PLBF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) (90,144) overlay ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_P TERRAIN ADJACENT PROB IMAGESTEM
    {TRANSITION_RESTRICTED_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 (90,144) overlay ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED TERRAIN ADJACENT IMAGESTEM
    {TRANSITION_RESTRICTED_PLBF ({TERRAIN}) ({ADJACENT}) 100 0 (90,144) overlay ({IMAGESTEM})}
#enddef
#end of generated code
#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro TRANSITION_RESTRICTED2 TERRAIN  ADJACENT P=PROB=100 L=LAYER=0 B=BASE=(90,144) F=FLAG=overlay IMAGESTEM
#Please do not modify
#define TRANSITION_RESTRICTED2_LBF TERRAIN ADJACENT LAYER BASE FLAG IMAGESTEM
    {TRANSITION_RESTRICTED2_PLBF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) ({BASE}) ({FLAG}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_PBF TERRAIN ADJACENT PROB BASE FLAG IMAGESTEM
    {TRANSITION_RESTRICTED2_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 ({BASE}) ({FLAG}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_BF TERRAIN ADJACENT BASE FLAG IMAGESTEM
    {TRANSITION_RESTRICTED2_PLBF ({TERRAIN}) ({ADJACENT}) 100 0 ({BASE}) ({FLAG}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED2_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) ({LAYER}) (90,144) ({FLAG}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_LF TERRAIN ADJACENT LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED2_PLBF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) (90,144) ({FLAG}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_PF TERRAIN ADJACENT PROB FLAG IMAGESTEM
    {TRANSITION_RESTRICTED2_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 (90,144) ({FLAG}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_F TERRAIN ADJACENT FLAG IMAGESTEM
    {TRANSITION_RESTRICTED2_PLBF ({TERRAIN}) ({ADJACENT}) 100 0 (90,144) ({FLAG}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_PLB TERRAIN ADJACENT PROB LAYER BASE IMAGESTEM
    {TRANSITION_RESTRICTED2_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) ({LAYER}) ({BASE}) overlay ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_LB TERRAIN ADJACENT LAYER BASE IMAGESTEM
    {TRANSITION_RESTRICTED2_PLBF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) ({BASE}) overlay ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_PB TERRAIN ADJACENT PROB BASE IMAGESTEM
    {TRANSITION_RESTRICTED2_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 ({BASE}) overlay ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_B TERRAIN ADJACENT BASE IMAGESTEM
    {TRANSITION_RESTRICTED2_PLBF ({TERRAIN}) ({ADJACENT}) 100 0 ({BASE}) overlay ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_PL TERRAIN ADJACENT PROB LAYER IMAGESTEM
    {TRANSITION_RESTRICTED2_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) ({LAYER}) (90,144) overlay ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_L TERRAIN ADJACENT LAYER IMAGESTEM
    {TRANSITION_RESTRICTED2_PLBF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) (90,144) overlay ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_P TERRAIN ADJACENT PROB IMAGESTEM
    {TRANSITION_RESTRICTED2_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 (90,144) overlay ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2 TERRAIN ADJACENT IMAGESTEM
    {TRANSITION_RESTRICTED2_PLBF ({TERRAIN}) ({ADJACENT}) 100 0 (90,144) overlay ({IMAGESTEM})}
#enddef
#end of generated code
