Schema: allow key values to be variables

This commit is contained in:
mattsc 2021-05-18 09:09:18 -07:00 committed by Pentarctagon
parent 1eca762270
commit 38978feadd
5 changed files with 10 additions and 6 deletions

View file

@ -889,7 +889,7 @@
name="animate_unit"
max=infinite
{REQUIRED_KEY flag string}
{SIMPLE_KEY hits anim_hits}
{SIMPLE_KEY hits s_anim_hits}
{SIMPLE_KEY text s_t_string,int}
{SIMPLE_KEY male_text s_t_string,int}
{SIMPLE_KEY female_text s_t_string,int}

View file

@ -477,8 +477,8 @@
[tag]
name="time_area"
max=infinite
{SIMPLE_KEY x range_list}
{SIMPLE_KEY y range_list}
{SIMPLE_KEY x s_range_list}
{SIMPLE_KEY y s_range_list}
{DEFAULT_KEY current_time int 0}
{LINK_TAG "scenario/time"}
[/tag]

View file

@ -4,7 +4,7 @@
max=0
{SIMPLE_KEY time_of_day string}
{SIMPLE_KEY time_of_day_id string}
{SIMPLE_KEY terrain terrain_list}
{SIMPLE_KEY terrain s_terrain_list}
{SIMPLE_KEY x s_coordinates}
{SIMPLE_KEY y s_coordinates}
{SIMPLE_KEY area string}
@ -29,5 +29,5 @@
max=0
super="$filter_location"
{SIMPLE_KEY count s_range_list}
{SIMPLE_KEY adjacent dir_list}
{SIMPLE_KEY adjacent s_dir_list}
[/tag]

View file

@ -376,8 +376,12 @@
{SUBST_TYPE coordinates}
{SUBST_TYPE range_list}
{SUBST_TYPE terrain_code}
{SUBST_TYPE terrain_list}
{SUBST_TYPE dir}
{SUBST_TYPE dir_list}
{SUBST_TYPE int_percent}
{SUBST_TYPE anim_hits}
{SUBST_TYPE f_int}
[type]
name="global"
value="global"

View file

@ -46,7 +46,7 @@
name="~value~"
max=0
super="units/unit_type/attack/specials/~generic~"
{SIMPLE_KEY value f_int}
{SIMPLE_KEY value s_f_int}
{SIMPLE_KEY add f_int}
{SIMPLE_KEY sub f_int}
{SIMPLE_KEY multiply f_real}