Follows rP22527, rP22901 and rP23448.
Supersedes D1936.
This internationalises damage types and status effects.
The system is similar to resources.json but the JSON files are only necessary for translation and deduplication.
For damage types, they specify the order and the name but XML-only damage types are allowed for slightly easier modding.
For status effects, they act as 'augmenters' of template definitions, which means re-using the same status effect in several places is now much easier.
See D2296 for the broader question of status effects tooltips.
This lets XML extractors parse a custom context. Precedence is explicated as such:
- the 'context' attribute of the XML tag.
- tagAsContext
- customContext
Future work:
- consider internationalising icons?