Skip to content

Commit

Permalink
Schema: Support for turns=unlimited
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Oct 24, 2018
1 parent 79eed95 commit 12e78df
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/schema/core/actionwml.cfg
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion data/schema/core/addons.cfg
Expand Up @@ -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}
Expand Down
11 changes: 11 additions & 0 deletions data/schema/game_config.cfg
Expand Up @@ -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"
Expand Down

0 comments on commit 12e78df

Please sign in to comment.