Schema: Support for turns=unlimited

This commit is contained in:
Celtic Minstrel 2018-03-30 19:56:17 -04:00
parent 79eed95f98
commit 12e78df9f4
3 changed files with 13 additions and 2 deletions

View file

@ -295,7 +295,7 @@
name="modify_turns"
max=infinite
{INSERT_TAG}
{SIMPLE_KEY value s_unsigned}
{SIMPLE_KEY value s_unsigned,turns}
{SIMPLE_KEY add s_int}
{SIMPLE_KEY current s_unsigned}
[/tag]

View file

@ -301,7 +301,7 @@
{SIMPLE_KEY next_scenario string}
{SIMPLE_KEY name t_string}
{SIMPLE_KEY map_data map_data}
{DEFAULT_KEY turns int -1}
{DEFAULT_KEY turns turns unlimited}
{DEFAULT_KEY turn_at int 1}
{DEFAULT_KEY random_start_time bool,int_list no} # Note: Is it random_start_time or random_starting_time? (There's some uses of the latter)
{DEPRECATED_KEY music string}

View file

@ -364,6 +364,17 @@
[/type]
[/union]
[/type]
[type]
name="turns"
[union]
[type]
link=unsigned
[/type]
[type]
value="-1|unlimited"
[/type]
[/union]
[/type]
{SUBST_TYPE coordinates}
[tag]
name="root"