WML coding for the new detritus terrain from doofus.

This commit is contained in:
fendrin 2013-12-31 16:24:37 +01:00
parent a968f9bea8
commit de0623ffc9
2 changed files with 336 additions and 0 deletions

View file

@ -821,4 +821,318 @@
# Default terrain
{TERRAIN_BASE * void/void}
[terrain_graphics]
map="
, *
* , *
, 1
* , *
, *"
[tile]
pos=1
type=*^Tshy
set_no_flag=litter_base
[/tile]
probability=33
[image]
name=misc/detritus/trashA-@V.png
variations="1;2;3;4;5"
base=90,144
center=90,144
layer=-201
[/image]
[/terrain_graphics]
[terrain_graphics]
map="
, *
* , *
, 1
* , *
, *"
[tile]
pos=1
type=*^Tbny
set_no_flag=litter_base
[/tile]
probability=33
[image]
name=misc/detritus/detritusA-@V.png
variations="1;2;3;4;5"
base=90,144
center=90,144
layer=-201
[/image]
[/terrain_graphics]
[terrain_graphics]
map="
, *
* , *
, 1
* , *
, *"
[tile]
pos=1
type=*^Tbny,*^Tshy
set_no_flag=litter_base
[/tile]
probability=100
[image]
name=misc/detritus/liter@V.png
variations=";2;3;4;5;6"
base=90,144
center=90,144
layer=-201
[/image]
[/terrain_graphics]
##################### two neighbours ########################
#define TRI_TRASH_B TERRAIN FLAG PROB VARIATIONS IMAGE
# set flags
[terrain_graphics]
map="
, *
* , *
, 1
2 , 2
, *"
[tile]
pos=1
type={TERRAIN}
set_no_flag={FLAG}
[/tile]
[tile]
pos=2
type={TERRAIN}
has_flag=litter_base
no_flag={FLAG}
[/tile]
probability=100
[/terrain_graphics]
[terrain_graphics]
map="
, *
* , 2
, 1
* , 2
, *"
[tile]
pos=1
type={TERRAIN}
set_no_flag={FLAG}
[/tile]
[tile]
pos=2
type={TERRAIN}
has_flag=litter_base
no_flag={FLAG}
[/tile]
probability=100
[/terrain_graphics]
[terrain_graphics]
map="
, *
2 , 2
, 1
* , *
, *"
[tile]
pos=1
type={TERRAIN}
set_no_flag={FLAG}
[/tile]
[tile]
pos=2
type={TERRAIN}
has_flag=litter_base
no_flag={FLAG}
[/tile]
probability=100
[/terrain_graphics]
[terrain_graphics]
map="
, *
2 , *
, 1
2 , *
, *"
[tile]
pos=1
type={TERRAIN}
set_no_flag={FLAG}
[/tile]
[tile]
pos=2
type={TERRAIN}
has_flag=litter_base
no_flag={FLAG}
[/tile]
probability=100
[/terrain_graphics]
# draw images
[terrain_graphics]
map="
, *
* , *
, 1
* , *
, *"
[tile]
pos=1
type={TERRAIN}
has_flag={FLAG}
set_no_flag={FLAG}_drawn
[/tile]
[tile]
pos=2
type={TERRAIN}
has_flag=litter_base
no_flag={FLAG}
[/tile]
probability={PROB}
[image]
name={IMAGE}-@V.png
variations={VARIATIONS}
base=90,144
center=90,144
layer=-200
[/image]
[/terrain_graphics]
#enddef
{TRI_TRASH_B (*^Tshy) (trash_medium) (70) ("1;2;3;4;5;6;7;8;9;10") (misc/detritus/trashB)}
{TRI_TRASH_B (*^Tbny) (detritus_medium) (70) ("1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16") (misc/detritus/detritusB)}
############################## Major ##########################
#define TRI_TRASH_C TERRAIN FLAG FLAG2 PROB VARIATIONS IMAGE
# set flags
[terrain_graphics]
map="
, 2
3 , 3
, 1
3 , 3
, 2"
[tile]
pos=1
type={TERRAIN}
set_no_flag={FLAG}
[/tile]
[tile]
pos=2
has_flag={FLAG2}
no_flag={FLAG}
[/tile]
[tile]
pos=3
no_flag={FLAG}
[/tile]
probability=100
[/terrain_graphics]
[terrain_graphics]
map="
, 3
3 , 2
, 1
2 , 3
, 3"
[tile]
pos=1
type={TERRAIN}
set_no_flag={FLAG}
[/tile]
[tile]
pos=2
has_flag={FLAG2}
no_flag={FLAG}
[/tile]
[tile]
pos=3
no_flag={FLAG}
[/tile]
probability=100
[/terrain_graphics]
[terrain_graphics]
map="
, 3
2 , 3
, 1
3 , 2
, 3"
[tile]
pos=1
type={TERRAIN}
set_no_flag={FLAG}
[/tile]
[tile]
pos=2
has_flag={FLAG2}
no_flag={FLAG}
[/tile]
[tile]
pos=3
no_flag={FLAG}
[/tile]
probability=100
[/terrain_graphics]
# draw images
[terrain_graphics]
map="
, *
* , *
, 1
* , *
, *"
[tile]
pos=1
type={TERRAIN}
has_flag={FLAG}
set_no_flag={FLAG}_drawn
[/tile]
probability={PROB}
[image]
name={IMAGE}-@V.png
variations={VARIATIONS}
base=90,144
center=90,144
layer=-199
[/image]
[/terrain_graphics]
#enddef
{TRI_TRASH_C (*^Tshy) (trash_big) (trash_medium) (30) ("1;2;3;4") (misc/detritus/trashC)}
{TRI_TRASH_C (*^Tbny) (detritus_big) (detritus_medium) (50) ("1;2;3;4;5;6;7") (misc/detritus/detritusC)}
#wmlindent: stop ignoring

View file

@ -8,6 +8,28 @@
# NOTE: this list is sorted to group things comprehensibly in the editor
#
# ## Trash and battlefield litter ##
#
[terrain_type]
symbol_image=misc/detritus/trashC-1
id=tri_trash
name= _ "Trash"
string=^Tshy
aliasof=_bas
editor_group=embellishments
[/terrain_type]
[terrain_type]
symbol_image=misc/detritus/detritusC-1
id=tri_bones
name= _ "Remains"
string=^Tbny
aliasof=_bas
editor_group=embellishments
[/terrain_type]
#
# ## Water ##
#