Skip to content

Commit

Permalink
Fix some reference errors in WML schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Oct 24, 2020
1 parent eb1988a commit 23859c6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
4 changes: 2 additions & 2 deletions data/schema/core/addons.cfg
Expand Up @@ -531,8 +531,8 @@
[/tag]
{LINK_TAG "titlescreen_music/music"}
{LINK_TAG "terrain_graphics"}
{LINK_TAG "game_config/color_palette"}
{LINK_TAG "game_config/color_range"}
{LINK_TAG "color_palette"}
{LINK_TAG "color_range"}
# TODO: Document [menu_item] and [undo_stack]
[if]
map_generation=default
Expand Down
2 changes: 1 addition & 1 deletion data/schema/schema.cfg
Expand Up @@ -65,7 +65,7 @@
[tag]
name="type"
max=infinite
super="type"
super="wml_schema/type"
{REQUIRED_KEY name id}
[if]
[union]
Expand Down
21 changes: 21 additions & 0 deletions data/schema/units/specials.cfg
Expand Up @@ -19,6 +19,27 @@
{FILTER_TAG "filter_defender" unit {FILTER_TAG "filter_weapon" weapon ()}}
{WML_MERGE_KEYS}
[/tag]
# A few specials inheriting from ~generic~ are included here so that unit abilities can then inherit from them.
[tag]
name="firststrike"
max=infinite
super="units/unit_type/attack/specials/~generic~"
[/tag]
[tag]
name="poison"
max=infinite
super="units/unit_type/attack/specials/~generic~"
[/tag]
[tag]
name="slow"
max=infinite
super="units/unit_type/attack/specials/~generic~"
[/tag]
[tag]
name="petrifies"
max=infinite
super="units/unit_type/attack/specials/~generic~"
[/tag]
[tag]
# Using invalid characters to ensure it doesn't match a real tag.
name="~value~"
Expand Down

0 comments on commit 23859c6

Please sign in to comment.