Add compatible IPC for now.

This commit is contained in:
Ottermandias 2023-06-22 14:02:36 +02:00
parent 1aba34f34a
commit 63e82d19dc
9 changed files with 392 additions and 305 deletions

View file

@ -81,7 +81,7 @@ public static class DesignBase64Migration
data.SetItem(EquipSlot.MainHand, main);
data.SetStain(EquipSlot.MainHand, cur[0].Stain);
var off = items.Identify(EquipSlot.OffHand, cur[1].Set, cur[1].Type, (byte)cur[1].Variant, main.Type);
if (!off.Valid)
if (main.Type.Offhand() != FullEquipType.Unknown && !off.Valid)
throw new Exception($"Base64 string invalid, weapon could not be identified.");
data.SetItem(EquipSlot.OffHand, off);