Removed the IF_TERRAIN macro,
...since it hasn't been needed for anything in a long while.
This commit is contained in:
parent
0655d2a5b2
commit
681344e706
1 changed files with 0 additions and 35 deletions
|
@ -163,41 +163,6 @@
|
|||
{CLEAR_VARIABLE STORE_UNIT_VAR_store}
|
||||
#enddef
|
||||
|
||||
#define IF_TERRAIN X Y TYPES CONTENTS
|
||||
# This is a way to check whether or not the terrain in the given coordinates
|
||||
# is of the given type or types. Might be useful, since filtering by terrain
|
||||
# isn't possible directly.
|
||||
#
|
||||
# You can use it, for example, like this:
|
||||
#! [event]
|
||||
#! name=moveto
|
||||
#! first_time_only=no
|
||||
#!
|
||||
#! {IF_TERRAIN $x1 $y1 gfm (
|
||||
#! [then]
|
||||
#! {DEBUG_MSG "Stepped on grassland, forest or mountains!"}
|
||||
#! [/then]
|
||||
#! )}
|
||||
#! [/event]
|
||||
[store_locations]
|
||||
x={X}
|
||||
y={Y}
|
||||
terrain={TYPES}
|
||||
variable=IF_TERRAIN_temp
|
||||
[/store_locations]
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=IF_TERRAIN_temp.length
|
||||
not_equals=0
|
||||
[/variable]
|
||||
|
||||
{CONTENTS}
|
||||
[/if]
|
||||
|
||||
{CLEAR_VARIABLE IF_TERRAIN_temp}
|
||||
#enddef
|
||||
|
||||
#define GENERIC_UNIT SIDE TYPE X Y
|
||||
# Creates a generic unit of TYPE belonging to SIDE at X,Y, which has a
|
||||
# random name and traits (just like a recruited unit).
|
||||
|
|
Loading…
Add table
Reference in a new issue