Implements racial override and fallback textures for races:
If a path prefix is provided for a race, then all apparel runs through that first. If matching textures are found under the prefixed path, then it uses those.
The vanilla path with the wearer's specific bodytype is checked next. If those textures are found, then everything works as normal.
If there's a specific path override for a specific ThingDef (not shown in above example), that is attempted next.
If the race has set, it runs down the list in order and sees if any of them match the current apparel piece. This will check against body part groups, layers, and/or apparel tags. If you set a fallback but do not provide a texture path, then any apparel that matches this fallback will simply be invisible.
If the race has a bodytype fallback (either or , then it will attempt to substitute the fallback body type in the vanilla-generated texture path and see if that yields any usable textures.
If all else fails, it allows normal vanilla behavior to occur.
Implements racial override and fallback textures for races:
An example of the XML applied in
<graphicPaths>
:A test using the above XML: