Convert Unknown Equipslots to Head for DemiHuman IMC.

This commit is contained in:
Ottermandias 2022-12-25 14:40:32 +01:00
parent 8bca3d82f5
commit 3e26972a15
2 changed files with 3 additions and 3 deletions

View file

@ -86,7 +86,7 @@ public static class EquipSlotExtensions
EquipSlot.RFinger => "rir",
EquipSlot.LFinger => "ril",
EquipSlot.Wrists => "wrs",
_ => throw new InvalidEnumArgumentException(),
_ => "unk",
};
}
@ -116,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."),
_ => EquipSlot.Unknown,
};
}

View file

@ -57,7 +57,7 @@ public readonly struct ImcManipulation : IMetaManipulation< ImcManipulation >
{
BodySlot = BodySlot.Unknown;
SecondaryId = secondaryId;
EquipSlot = equipSlot;
EquipSlot = equipSlot == EquipSlot.Unknown ? EquipSlot.Head : equipSlot;
}
else
{