#textdomain wesnoth

# This utility macro disables standard transitions on a given terrain type. It
# is used for castles and keeps, as those have custom transitions.

#define DISABLE_BASE_TRANSITIONS_F TERRAIN FLAG
    [terrain_graphics]
        [tile]
            x=0
            y=0
            type={TERRAIN}
            set_flag={FLAG}-n,{FLAG}-ne,{FLAG}-se,{FLAG}-s,{FLAG}-sw,{FLAG}-nw
        [/tile]
    [/terrain_graphics]
#enddef

#define DISABLE_BASE_TRANSITIONS TERRAINLIST
    {DISABLE_BASE_TRANSITIONS_F {TERRAINLIST} transition}
#enddef

###############################
#  Needs one neighbour        #
###############################

#define TRANSITION_RESTRICTED_PLFB TERRAINLIST ADJACENT PROB LAYER FLAG BUILDER IMAGESTEM
    {BORDER_RESTRICTED_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef

#meta-macro TRANSITION_RESTRICTED TERRAINLIST ADJACENT P=PROB=100 L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM

#define TRANSITION_RESTRICTED_RANDOM_LFB TERRAINLIST ADJACENT LAYER FLAG BUILDER IMAGESTEM
    {BORDER_RESTRICTED_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef

#meta-macro TRANSITION_RESTRICTED_RANDOM TERRAINLIST ADJACENT L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM

###############################
#  Needs two neighbour        #
###############################

#define TRANSITION_RESTRICTED2_PLFB TERRAINLIST ADJACENT PROB LAYER FLAG BUILDER IMAGESTEM
    {BORDER_RESTRICTED2_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef

#meta-macro TRANSITION_RESTRICTED2 TERRAINLIST ADJACENT P=PROB=100 L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM

#define TRANSITION_RESTRICTED2_RANDOM_LFB TERRAINLIST ADJACENT LAYER FLAG BUILDER IMAGESTEM
    {BORDER_RESTRICTED2_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef

#meta-macro TRANSITION_RESTRICTED2_RANDOM TERRAINLIST ADJACENT L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM

###############################
#  Needs three neighbour      #
###############################

#define TRANSITION_RESTRICTED3_PLFB TERRAINLIST ADJACENT PROB LAYER FLAG BUILDER IMAGESTEM
    {BORDER_RESTRICTED3_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef

#meta-macro TRANSITION_RESTRICTED3 TERRAINLIST ADJACENT P=PROB=100 L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM

#define TRANSITION_RESTRICTED3_RANDOM_LFB TERRAINLIST ADJACENT LAYER FLAG BUILDER IMAGESTEM
    {BORDER_RESTRICTED3_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef

#meta-macro TRANSITION_RESTRICTED3_RANDOM TERRAINLIST ADJACENT L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM

###############################
#  Needs four neighbour       #
###############################

#define TRANSITION_RESTRICTED4_PLFB TERRAINLIST ADJACENT PROB LAYER FLAG BUILDER IMAGESTEM
    {BORDER_RESTRICTED4_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef

#meta-macro TRANSITION_RESTRICTED4 TERRAINLIST ADJACENT P=PROB=100 L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM

#define TRANSITION_RESTRICTED4_RANDOM_LFB TERRAINLIST ADJACENT LAYER FLAG BUILDER IMAGESTEM
    {BORDER_RESTRICTED4_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef

#meta-macro TRANSITION_RESTRICTED4_RANDOM TERRAINLIST ADJACENT L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM

###############################
#  Needs five neighbour       #
###############################

#define TRANSITION_RESTRICTED5_PLFB TERRAINLIST ADJACENT PROB LAYER FLAG BUILDER IMAGESTEM
    {BORDER_RESTRICTED5_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef

#meta-macro TRANSITION_RESTRICTED5 TERRAINLIST ADJACENT P=PROB=100 L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM

#define TRANSITION_RESTRICTED5_RANDOM_LFB TERRAINLIST ADJACENT LAYER FLAG BUILDER IMAGESTEM
    {BORDER_RESTRICTED5_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef

#meta-macro TRANSITION_RESTRICTED5_RANDOM TERRAINLIST ADJACENT L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM

###############################
#  Needs six neighbour        #
###############################

#define TRANSITION_RESTRICTED6_PLFB TERRAINLIST ADJACENT PROB LAYER FLAG BUILDER IMAGESTEM
    {BORDER_RESTRICTED6_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef

#meta-macro TRANSITION_RESTRICTED6 TERRAINLIST ADJACENT P=PROB=100 L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM

#define TRANSITION_RESTRICTED6_RANDOM_LFB TERRAINLIST ADJACENT LAYER FLAG BUILDER IMAGESTEM
    {BORDER_RESTRICTED6_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef

#meta-macro TRANSITION_RESTRICTED6_RANDOM TERRAINLIST ADJACENT L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM

###############################
#  Combination of the above   #
###############################

#define TRANSITION_COMPLETE_LFB TERRAINLIST ADJACENT LAYER FLAG BUILDER IMAGESTEM
    {BORDER_COMPLETE_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef

#meta-macro TRANSITION_COMPLETE TERRAINLIST ADJACENT L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM

#####################################################################################################
###############        AUTO GENERATED CODE        ###################################################
#####################################################################################################
#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro TRANSITION_RESTRICTED TERRAINLIST ADJACENT P=PROB=100 L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM
#Please do not modify
#define TRANSITION_RESTRICTED_LFB TERRAINLIST ADJACENT LAYER FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_PFB TERRAINLIST ADJACENT PROB FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_FB TERRAINLIST ADJACENT FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_PLB TERRAINLIST ADJACENT PROB LAYER BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_LB TERRAINLIST ADJACENT LAYER BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_PB TERRAINLIST ADJACENT PROB BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_B TERRAINLIST ADJACENT BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_PLF TERRAINLIST ADJACENT PROB LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_LF TERRAINLIST ADJACENT LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_PF TERRAINLIST ADJACENT PROB FLAG IMAGESTEM
    {TRANSITION_RESTRICTED_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_F TERRAINLIST ADJACENT FLAG IMAGESTEM
    {TRANSITION_RESTRICTED_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_PL TERRAINLIST ADJACENT PROB LAYER IMAGESTEM
    {TRANSITION_RESTRICTED_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_L TERRAINLIST ADJACENT LAYER IMAGESTEM
    {TRANSITION_RESTRICTED_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_P TERRAINLIST ADJACENT PROB IMAGESTEM
    {TRANSITION_RESTRICTED_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED TERRAINLIST ADJACENT IMAGESTEM
    {TRANSITION_RESTRICTED_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#end of generated code
#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro TRANSITION_RESTRICTED_RANDOM TERRAINLIST ADJACENT L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM
#Please do not modify
#define TRANSITION_RESTRICTED_RANDOM_FB TERRAINLIST ADJACENT FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_RANDOM_LB TERRAINLIST ADJACENT LAYER BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_RANDOM_B TERRAINLIST ADJACENT BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_RANDOM_LF TERRAINLIST ADJACENT LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_RANDOM_F TERRAINLIST ADJACENT FLAG IMAGESTEM
    {TRANSITION_RESTRICTED_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_RANDOM_L TERRAINLIST ADJACENT LAYER IMAGESTEM
    {TRANSITION_RESTRICTED_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED_RANDOM TERRAINLIST ADJACENT IMAGESTEM
    {TRANSITION_RESTRICTED_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#end of generated code
#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro TRANSITION_RESTRICTED2 TERRAINLIST ADJACENT P=PROB=100 L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM
#Please do not modify
#define TRANSITION_RESTRICTED2_LFB TERRAINLIST ADJACENT LAYER FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED2_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_PFB TERRAINLIST ADJACENT PROB FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED2_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_FB TERRAINLIST ADJACENT FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED2_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_PLB TERRAINLIST ADJACENT PROB LAYER BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED2_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_LB TERRAINLIST ADJACENT LAYER BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED2_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_PB TERRAINLIST ADJACENT PROB BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED2_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_B TERRAINLIST ADJACENT BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED2_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_PLF TERRAINLIST ADJACENT PROB LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED2_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_LF TERRAINLIST ADJACENT LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED2_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_PF TERRAINLIST ADJACENT PROB FLAG IMAGESTEM
    {TRANSITION_RESTRICTED2_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_F TERRAINLIST ADJACENT FLAG IMAGESTEM
    {TRANSITION_RESTRICTED2_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_PL TERRAINLIST ADJACENT PROB LAYER IMAGESTEM
    {TRANSITION_RESTRICTED2_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_L TERRAINLIST ADJACENT LAYER IMAGESTEM
    {TRANSITION_RESTRICTED2_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_P TERRAINLIST ADJACENT PROB IMAGESTEM
    {TRANSITION_RESTRICTED2_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2 TERRAINLIST ADJACENT IMAGESTEM
    {TRANSITION_RESTRICTED2_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#end of generated code
#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro TRANSITION_RESTRICTED2_RANDOM TERRAINLIST ADJACENT L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM
#Please do not modify
#define TRANSITION_RESTRICTED2_RANDOM_FB TERRAINLIST ADJACENT FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED2_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_RANDOM_LB TERRAINLIST ADJACENT LAYER BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED2_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_RANDOM_B TERRAINLIST ADJACENT BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED2_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_RANDOM_LF TERRAINLIST ADJACENT LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED2_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_RANDOM_F TERRAINLIST ADJACENT FLAG IMAGESTEM
    {TRANSITION_RESTRICTED2_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_RANDOM_L TERRAINLIST ADJACENT LAYER IMAGESTEM
    {TRANSITION_RESTRICTED2_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED2_RANDOM TERRAINLIST ADJACENT IMAGESTEM
    {TRANSITION_RESTRICTED2_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#end of generated code
#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro TRANSITION_RESTRICTED3 TERRAINLIST ADJACENT P=PROB=100 L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM
#Please do not modify
#define TRANSITION_RESTRICTED3_LFB TERRAINLIST ADJACENT LAYER FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED3_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3_PFB TERRAINLIST ADJACENT PROB FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED3_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3_FB TERRAINLIST ADJACENT FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED3_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3_PLB TERRAINLIST ADJACENT PROB LAYER BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED3_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3_LB TERRAINLIST ADJACENT LAYER BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED3_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3_PB TERRAINLIST ADJACENT PROB BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED3_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3_B TERRAINLIST ADJACENT BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED3_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3_PLF TERRAINLIST ADJACENT PROB LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED3_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3_LF TERRAINLIST ADJACENT LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED3_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3_PF TERRAINLIST ADJACENT PROB FLAG IMAGESTEM
    {TRANSITION_RESTRICTED3_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3_F TERRAINLIST ADJACENT FLAG IMAGESTEM
    {TRANSITION_RESTRICTED3_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3_PL TERRAINLIST ADJACENT PROB LAYER IMAGESTEM
    {TRANSITION_RESTRICTED3_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3_L TERRAINLIST ADJACENT LAYER IMAGESTEM
    {TRANSITION_RESTRICTED3_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3_P TERRAINLIST ADJACENT PROB IMAGESTEM
    {TRANSITION_RESTRICTED3_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3 TERRAINLIST ADJACENT IMAGESTEM
    {TRANSITION_RESTRICTED3_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#end of generated code
#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro TRANSITION_RESTRICTED3_RANDOM TERRAINLIST ADJACENT L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM
#Please do not modify
#define TRANSITION_RESTRICTED3_RANDOM_FB TERRAINLIST ADJACENT FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED3_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3_RANDOM_LB TERRAINLIST ADJACENT LAYER BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED3_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3_RANDOM_B TERRAINLIST ADJACENT BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED3_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3_RANDOM_LF TERRAINLIST ADJACENT LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED3_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3_RANDOM_F TERRAINLIST ADJACENT FLAG IMAGESTEM
    {TRANSITION_RESTRICTED3_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3_RANDOM_L TERRAINLIST ADJACENT LAYER IMAGESTEM
    {TRANSITION_RESTRICTED3_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED3_RANDOM TERRAINLIST ADJACENT IMAGESTEM
    {TRANSITION_RESTRICTED3_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#end of generated code
#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro TRANSITION_RESTRICTED4 TERRAINLIST ADJACENT P=PROB=100 L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM
#Please do not modify
#define TRANSITION_RESTRICTED4_LFB TERRAINLIST ADJACENT LAYER FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED4_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4_PFB TERRAINLIST ADJACENT PROB FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED4_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4_FB TERRAINLIST ADJACENT FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED4_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4_PLB TERRAINLIST ADJACENT PROB LAYER BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED4_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4_LB TERRAINLIST ADJACENT LAYER BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED4_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4_PB TERRAINLIST ADJACENT PROB BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED4_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4_B TERRAINLIST ADJACENT BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED4_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4_PLF TERRAINLIST ADJACENT PROB LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED4_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4_LF TERRAINLIST ADJACENT LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED4_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4_PF TERRAINLIST ADJACENT PROB FLAG IMAGESTEM
    {TRANSITION_RESTRICTED4_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4_F TERRAINLIST ADJACENT FLAG IMAGESTEM
    {TRANSITION_RESTRICTED4_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4_PL TERRAINLIST ADJACENT PROB LAYER IMAGESTEM
    {TRANSITION_RESTRICTED4_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4_L TERRAINLIST ADJACENT LAYER IMAGESTEM
    {TRANSITION_RESTRICTED4_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4_P TERRAINLIST ADJACENT PROB IMAGESTEM
    {TRANSITION_RESTRICTED4_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4 TERRAINLIST ADJACENT IMAGESTEM
    {TRANSITION_RESTRICTED4_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#end of generated code
#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro TRANSITION_RESTRICTED4_RANDOM TERRAINLIST ADJACENT L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM
#Please do not modify
#define TRANSITION_RESTRICTED4_RANDOM_FB TERRAINLIST ADJACENT FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED4_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4_RANDOM_LB TERRAINLIST ADJACENT LAYER BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED4_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4_RANDOM_B TERRAINLIST ADJACENT BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED4_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4_RANDOM_LF TERRAINLIST ADJACENT LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED4_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4_RANDOM_F TERRAINLIST ADJACENT FLAG IMAGESTEM
    {TRANSITION_RESTRICTED4_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4_RANDOM_L TERRAINLIST ADJACENT LAYER IMAGESTEM
    {TRANSITION_RESTRICTED4_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED4_RANDOM TERRAINLIST ADJACENT IMAGESTEM
    {TRANSITION_RESTRICTED4_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#end of generated code
#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro TRANSITION_RESTRICTED5 TERRAINLIST ADJACENT P=PROB=100 L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM
#Please do not modify
#define TRANSITION_RESTRICTED5_LFB TERRAINLIST ADJACENT LAYER FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED5_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5_PFB TERRAINLIST ADJACENT PROB FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED5_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5_FB TERRAINLIST ADJACENT FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED5_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5_PLB TERRAINLIST ADJACENT PROB LAYER BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED5_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5_LB TERRAINLIST ADJACENT LAYER BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED5_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5_PB TERRAINLIST ADJACENT PROB BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED5_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5_B TERRAINLIST ADJACENT BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED5_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5_PLF TERRAINLIST ADJACENT PROB LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED5_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5_LF TERRAINLIST ADJACENT LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED5_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5_PF TERRAINLIST ADJACENT PROB FLAG IMAGESTEM
    {TRANSITION_RESTRICTED5_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5_F TERRAINLIST ADJACENT FLAG IMAGESTEM
    {TRANSITION_RESTRICTED5_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5_PL TERRAINLIST ADJACENT PROB LAYER IMAGESTEM
    {TRANSITION_RESTRICTED5_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5_L TERRAINLIST ADJACENT LAYER IMAGESTEM
    {TRANSITION_RESTRICTED5_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5_P TERRAINLIST ADJACENT PROB IMAGESTEM
    {TRANSITION_RESTRICTED5_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5 TERRAINLIST ADJACENT IMAGESTEM
    {TRANSITION_RESTRICTED5_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#end of generated code
#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro TRANSITION_RESTRICTED5_RANDOM TERRAINLIST ADJACENT L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM
#Please do not modify
#define TRANSITION_RESTRICTED5_RANDOM_FB TERRAINLIST ADJACENT FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED5_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5_RANDOM_LB TERRAINLIST ADJACENT LAYER BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED5_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5_RANDOM_B TERRAINLIST ADJACENT BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED5_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5_RANDOM_LF TERRAINLIST ADJACENT LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED5_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5_RANDOM_F TERRAINLIST ADJACENT FLAG IMAGESTEM
    {TRANSITION_RESTRICTED5_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5_RANDOM_L TERRAINLIST ADJACENT LAYER IMAGESTEM
    {TRANSITION_RESTRICTED5_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED5_RANDOM TERRAINLIST ADJACENT IMAGESTEM
    {TRANSITION_RESTRICTED5_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#end of generated code
#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro TRANSITION_RESTRICTED6 TERRAINLIST ADJACENT P=PROB=100 L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM
#Please do not modify
#define TRANSITION_RESTRICTED6_LFB TERRAINLIST ADJACENT LAYER FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED6_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6_PFB TERRAINLIST ADJACENT PROB FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED6_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6_FB TERRAINLIST ADJACENT FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED6_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6_PLB TERRAINLIST ADJACENT PROB LAYER BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED6_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6_LB TERRAINLIST ADJACENT LAYER BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED6_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6_PB TERRAINLIST ADJACENT PROB BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED6_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6_B TERRAINLIST ADJACENT BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED6_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6_PLF TERRAINLIST ADJACENT PROB LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED6_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6_LF TERRAINLIST ADJACENT LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED6_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6_PF TERRAINLIST ADJACENT PROB FLAG IMAGESTEM
    {TRANSITION_RESTRICTED6_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6_F TERRAINLIST ADJACENT FLAG IMAGESTEM
    {TRANSITION_RESTRICTED6_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6_PL TERRAINLIST ADJACENT PROB LAYER IMAGESTEM
    {TRANSITION_RESTRICTED6_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) ({LAYER}) transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6_L TERRAINLIST ADJACENT LAYER IMAGESTEM
    {TRANSITION_RESTRICTED6_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 ({LAYER}) transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6_P TERRAINLIST ADJACENT PROB IMAGESTEM
    {TRANSITION_RESTRICTED6_PLFB ({TERRAINLIST}) ({ADJACENT}) ({PROB}) -500 transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6 TERRAINLIST ADJACENT IMAGESTEM
    {TRANSITION_RESTRICTED6_PLFB ({TERRAINLIST}) ({ADJACENT}) 100 -500 transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#end of generated code
#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro TRANSITION_RESTRICTED6_RANDOM TERRAINLIST ADJACENT L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM
#Please do not modify
#define TRANSITION_RESTRICTED6_RANDOM_FB TERRAINLIST ADJACENT FLAG BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED6_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6_RANDOM_LB TERRAINLIST ADJACENT LAYER BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED6_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6_RANDOM_B TERRAINLIST ADJACENT BUILDER IMAGESTEM
    {TRANSITION_RESTRICTED6_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6_RANDOM_LF TERRAINLIST ADJACENT LAYER FLAG IMAGESTEM
    {TRANSITION_RESTRICTED6_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6_RANDOM_F TERRAINLIST ADJACENT FLAG IMAGESTEM
    {TRANSITION_RESTRICTED6_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6_RANDOM_L TERRAINLIST ADJACENT LAYER IMAGESTEM
    {TRANSITION_RESTRICTED6_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_RESTRICTED6_RANDOM TERRAINLIST ADJACENT IMAGESTEM
    {TRANSITION_RESTRICTED6_RANDOM_LFB ({TERRAINLIST}) ({ADJACENT}) -500 transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#end of generated code
#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro TRANSITION_COMPLETE TERRAINLIST ADJACENT L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM
#Please do not modify
#define TRANSITION_COMPLETE_FB TERRAINLIST ADJACENT FLAG BUILDER IMAGESTEM
    {TRANSITION_COMPLETE_LFB ({TERRAINLIST}) ({ADJACENT}) -500 ({FLAG}) ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_COMPLETE_LB TERRAINLIST ADJACENT LAYER BUILDER IMAGESTEM
    {TRANSITION_COMPLETE_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_COMPLETE_B TERRAINLIST ADJACENT BUILDER IMAGESTEM
    {TRANSITION_COMPLETE_LFB ({TERRAINLIST}) ({ADJACENT}) -500 transition ({BUILDER}) ({IMAGESTEM})}
#enddef
#define TRANSITION_COMPLETE_LF TERRAINLIST ADJACENT LAYER FLAG IMAGESTEM
    {TRANSITION_COMPLETE_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_COMPLETE_F TERRAINLIST ADJACENT FLAG IMAGESTEM
    {TRANSITION_COMPLETE_LFB ({TERRAINLIST}) ({ADJACENT}) -500 ({FLAG}) IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_COMPLETE_L TERRAINLIST ADJACENT LAYER IMAGESTEM
    {TRANSITION_COMPLETE_LFB ({TERRAINLIST}) ({ADJACENT}) ({LAYER}) transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#define TRANSITION_COMPLETE TERRAINLIST ADJACENT IMAGESTEM
    {TRANSITION_COMPLETE_LFB ({TERRAINLIST}) ({ADJACENT}) -500 transition IMAGE_SINGLE ({IMAGESTEM})}
#enddef
#end of generated code
