Skip to content

Commit 6dbc5fd

Browse files
committed
- Default mount type roots to dwn/top equipment slots when missing equipment slot information
1 parent fa30ca3 commit 6dbc5fd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

xivModdingFramework/Items/ItemType.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,19 @@ public static string GetItemSlotAbbreviation(this IItem item)
209209
if(match.Success)
210210
{
211211
return match.Groups[1].Value;
212+
} else
213+
{
214+
// Hackhack fallback for cases where we have mounts listed in the item list
215+
// with no actual specific equipment slot assigned, such as the Company Chocobo.
216+
if(mi.PrimaryID == 1 && mi.SecondaryID == 1)
217+
{
218+
// Company chocobo
219+
return "dwn";
220+
} else
221+
{
222+
// Other mounts
223+
return "top";
224+
}
212225
}
213226
}
214227
}

0 commit comments

Comments
 (0)