Restore the dir+count test for move_unit and add the syntax to the schema

This commit is contained in:
Celtic Minstrel 2019-12-14 11:28:37 -05:00
parent 705bfcc42f
commit 3303be6c91
3 changed files with 7 additions and 2 deletions

View file

@ -346,7 +346,7 @@
{SIMPLE_KEY to_x s_range_list}
{SIMPLE_KEY to_y s_range_list}
{SIMPLE_KEY to_location string}
{SIMPLE_KEY dir dir_list}
{SIMPLE_KEY dir dir_count_list}
{DEFAULT_KEY clear_shroud s_bool no}
{DEFAULT_KEY fire_event s_bool no}
{DEFAULT_KEY check_passability s_bool yes}

View file

@ -160,6 +160,11 @@
value="-?([ns][ew]?)(:cc?w)?"
[/type]
{LIST_TYPE dir}
[type]
name="dir_count"
value="-?([ns][ew]?)(:cc?w)?(:\d+)?"
[/type]
{LIST_TYPE dir_count}
[type]
name="anim_hits"
[union]

View file

@ -161,7 +161,7 @@
# to be added to the schema validation.
[move_unit]
id=bob
dir=sw,sw,sw,s,s
dir=sw:3,s:2
[/move_unit]
{ASSERT (