#textdomain wesnoth

#define OVERLAY_RANDOM_LF TERRAINLIST LAYER FLAG IMAGESTEM
    {OVERLAY_PLF ({TERRAINLIST}) 11  {LAYER} {FLAG} {IMAGESTEM}9}
    {OVERLAY_PLF ({TERRAINLIST}) 12  {LAYER} {FLAG} {IMAGESTEM}8}
    {OVERLAY_PLF ({TERRAINLIST}) 14  {LAYER} {FLAG} {IMAGESTEM}7}
    {OVERLAY_PLF ({TERRAINLIST}) 16  {LAYER} {FLAG} {IMAGESTEM}6}
    {OVERLAY_PLF ({TERRAINLIST}) 20  {LAYER} {FLAG} {IMAGESTEM}5}
    {OVERLAY_PLF ({TERRAINLIST}) 25  {LAYER} {FLAG} {IMAGESTEM}4}
    {OVERLAY_PLF ({TERRAINLIST}) 33  {LAYER} {FLAG} {IMAGESTEM}3}
    {OVERLAY_PLF ({TERRAINLIST}) 50  {LAYER} {FLAG} {IMAGESTEM}2}
    {OVERLAY_PLF ({TERRAINLIST}) 100 {LAYER} {FLAG} {IMAGESTEM}}
#enddef

#meta-macro OVERLAY_RANDOM TERRAIN L=LAYER=0 F=FLAG=overlay IMAGESTEM

#define VILLAGE_RANDOM TERRAINLIST IMAGESTEM
    {OVERLAY_RANDOM_LF ({TERRAINLIST}) 0 village {IMAGESTEM} }
#enddef

#define TERRAIN_BASE_RANDOM_LF TERRAIN LAYER FLAG IMAGESTEM
    {TERRAIN_BASE_PLF ({TERRAIN}) 11  {LAYER} {FLAG} {IMAGESTEM}9}
    {TERRAIN_BASE_PLF ({TERRAIN}) 12  {LAYER} {FLAG} {IMAGESTEM}8}
    {TERRAIN_BASE_PLF ({TERRAIN}) 14  {LAYER} {FLAG} {IMAGESTEM}7}
    {TERRAIN_BASE_PLF ({TERRAIN}) 16  {LAYER} {FLAG} {IMAGESTEM}6}
    {TERRAIN_BASE_PLF ({TERRAIN}) 20  {LAYER} {FLAG} {IMAGESTEM}5}
    {TERRAIN_BASE_PLF ({TERRAIN}) 25  {LAYER} {FLAG} {IMAGESTEM}4}
    {TERRAIN_BASE_PLF ({TERRAIN}) 33  {LAYER} {FLAG} {IMAGESTEM}3}
    {TERRAIN_BASE_PLF ({TERRAIN}) 50  {LAYER} {FLAG} {IMAGESTEM}2}
    {TERRAIN_BASE_PLF ({TERRAIN}) 100 {LAYER} {FLAG} {IMAGESTEM}}
#enddef

#meta-macro TERRAIN_BASE_RANDOM TERRAINLIST L=LAYER=-1000 F=FLAG=base IMAGESTEM

#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro OVERLAY_RANDOM TERRAIN L=LAYER=0 F=FLAG=overlay IMAGESTEM
#Please do not modify
#define OVERLAY_RANDOM_F TERRAIN FLAG IMAGESTEM
    {OVERLAY_RANDOM_LF ({TERRAIN}) 0 ({FLAG}) ({IMAGESTEM})}
#enddef
#define OVERLAY_RANDOM_L TERRAIN LAYER IMAGESTEM
    {OVERLAY_RANDOM_LF ({TERRAIN}) ({LAYER}) overlay ({IMAGESTEM})}
#enddef
#define OVERLAY_RANDOM TERRAIN IMAGESTEM
    {OVERLAY_RANDOM_LF ({TERRAIN}) 0 overlay ({IMAGESTEM})}
#enddef
#end of generated code
#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro TERRAIN_BASE_RANDOM TERRAINLIST L=LAYER=-1000 F=FLAG=base IMAGESTEM
#Please do not modify
#define TERRAIN_BASE_RANDOM_F TERRAINLIST FLAG IMAGESTEM
    {TERRAIN_BASE_RANDOM_LF ({TERRAINLIST}) -1000 ({FLAG}) ({IMAGESTEM})}
#enddef
#define TERRAIN_BASE_RANDOM_L TERRAINLIST LAYER IMAGESTEM
    {TERRAIN_BASE_RANDOM_LF ({TERRAINLIST}) ({LAYER}) base ({IMAGESTEM})}
#enddef
#define TERRAIN_BASE_RANDOM TERRAINLIST IMAGESTEM
    {TERRAIN_BASE_RANDOM_LF ({TERRAINLIST}) -1000 base ({IMAGESTEM})}
#enddef
#end of generated code
