File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
xivModdingFramework/Models/FileTypes Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,21 @@ public static async Task<string> GetExtraSkeletonFile(string fullMdlPath)
110
110
111
111
public static async Task < string > GetExtraSkeletonFile ( XivDependencyRootInfo root , XivRace race = XivRace . All_Races )
112
112
{
113
+ if ( root . SecondaryType == XivItemType . ear )
114
+ {
115
+ // Viera ears technically use their associated face's Extra Skeleton to resolve the bones. Kinda weird, but whatever.
116
+ // The bones are nearly identical for all the faces, so just use face 1
117
+ var nRoot = new XivDependencyRootInfo ( )
118
+ {
119
+ PrimaryType = root . PrimaryType ,
120
+ PrimaryId = root . PrimaryId ,
121
+ SecondaryId = 1 ,
122
+ SecondaryType = XivItemType . face ,
123
+ Slot = "fac"
124
+ } ;
125
+ root = nRoot ;
126
+ }
127
+
113
128
var file = await GetExtraSkelbPath ( root , race ) ;
114
129
if ( file == null ) return null ;
115
130
You can’t perform that action at this time.
0 commit comments