wesnoth/data/core/terrain-graphics/enduring-internal-tracks.cfg
doofus-01 19fcc1424f
Deprecation of old-style _PLFB and script-generated macros
1.17 terrain-graphics macros clean-up (#6606)
2022-04-16 10:01:09 -07:00

101 lines
2.1 KiB
INI

#textdomain wesnoth
###########################################
####### LAYOUT ########################
###########################################
#define TRACK_CONNECT TERRAINLIST FLAG R0 R1 R2 R3 R4 R5 S0 S1 S2 S3 S4 S5
[terrain_graphics]
map="
, {S1}
{S0}, {S2}
, 1
{S5}, {S3}
, {S4}"
[tile]
#main bridge
pos=1
type={TERRAINLIST}
set_flag={FLAG}-connect-{R0}
[/tile]
[tile]
pos=2
type={TERRAINLIST}
[/tile]
[/terrain_graphics]
#enddef
#define TRACK_AWAY TERRAINLIST ADJACENT FLAG R1 R2 R3 R4 R5 R6 S0 S1 S2 S3 S4 S5
[terrain_graphics]
map="
, {S1}
{S0}, {S2}
, 1
{S5}, {S3}
, {S4}"
[tile]
#main track
pos=1
type={TERRAINLIST}
no_flag={FLAG},{FLAG}-connect-{R4}
set_flag={FLAG}-away-{R4}
[/tile]
[tile]
#exit side
pos=2
type={ADJACENT}
no_flag={FLAG}-away-{R3}
[/tile]
[tile]
#side where we should have exited, but don't
pos=3
set_flag={FLAG}-away-{R1}
no_flag={FLAG}-connect-{R1}
[/tile]
[/terrain_graphics]
#enddef
#define TRACK_CONNECT_ALL TERRAINLIST FLAG R0 R1 R2 R3 R4 R5 S0 S1 S2 S3 S4 S5
[terrain_graphics]
map="
, {S1}
{S0}, {S2}
, 1
{S5}, {S3}
, {S4}"
[tile]
#exit side
pos=2
no_flag={FLAG}-away-{R3}
[/tile]
[tile]
#main bridge
pos=1
type={TERRAINLIST}
set_flag={FLAG}-connect-{R0}
no_flag={FLAG}-away-{R0}
[/tile]
[/terrain_graphics]
#enddef
#define TRACK_FINAL TERRAIN FLAG
[terrain_graphics]
map="
, 2
* , *
, 1
* , *
, *"
[tile]
pos=2
type={TERRAIN}
has_flag={FLAG}-connect-@R3
[/tile]
[tile]
pos=1
type={TERRAIN}
set_flag={FLAG}-connect-@R0
[/tile]
rotations=n,ne,se,s,sw,nw
[/terrain_graphics]
#enddef