wmlunits: recognise the `add_advancement` key
Describe the desired feature
@knyghtmare pointed out on Discord that units.wesnoth.org ignores customised advancements, so the eras/factions appear a bit broken in some cases.
It seems data/tools/unit_tree/helpers.py supports the deprecated [advancefrom] tag, but not its replacement [add_advancement]. It's not as simple as a renamed tag, because the new tag is now part of [campaign] rather than part of a [unit].
because the new tag is now part of
[campaign]
Not just that. It's part of
-
[campaign] -
[modification] -
[era] -
[scenario]
I always thought the UWO was written entirely with Javascript. This is the first time I am seeing it is actually made with a python script.
Just noting that (as stated on the linked page), add_advancement is the name of a key. The tag containing it is called [modify_unit_type].