Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show races with [race]help_taxonomy= as a tree in the help
For example, UtBS' Quenoth Elves now appear as a subfolder of Elves, and a major reorganisation of animals is being discussed in https://r.wesnoth.org/t56522 . Multiple levels of nesting are supported. If [race]help_taxonomy= points to a race that isn't defined, or isn't defined with the current set of add-ons, then it will fall back to adding the race at the top level. Discovering a unit belonging to a subgroup will automatically treat the parent group as discovered too. I may have missed a trick in writing this nicely, the code uses several different traversal patterns over the tree that it's constructing.
- Loading branch information
1 parent
9d48e03
commit 5788b0c
Showing
1 changed file
with
73 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters