This commit is contained in:
Ottermandias 2022-10-11 15:11:15 +02:00
parent 6039be8685
commit febfa8836e

View file

@ -49,6 +49,8 @@ public static class EquipSlotExtensions
7 => EquipSlot.Wrists,
8 => EquipSlot.RFinger,
9 => EquipSlot.LFinger,
10 => EquipSlot.MainHand,
11 => EquipSlot.OffHand,
_ => EquipSlot.Unknown,
};
@ -65,6 +67,8 @@ public static class EquipSlotExtensions
EquipSlot.Wrists => 7,
EquipSlot.RFinger => 8,
EquipSlot.LFinger => 9,
EquipSlot.MainHand => 10,
EquipSlot.OffHand => 11,
_ => uint.MaxValue,
};
@ -112,7 +116,7 @@ public static class EquipSlotExtensions
EquipSlot.BodyHands => EquipSlot.Body,
EquipSlot.BodyLegsFeet => EquipSlot.Body,
EquipSlot.ChestHands => EquipSlot.Body,
_ => throw new InvalidEnumArgumentException($"{value} ({(int) value}) is not valid."),
_ => throw new InvalidEnumArgumentException( $"{value} ({( int )value}) is not valid." ),
};
}