From 22202860624ecd0b3fcb78e588df92f5a5199a48 Mon Sep 17 00:00:00 2001 From: Martin Fournier Date: Sun, 9 Jan 2022 05:57:50 -0500 Subject: [PATCH] Fix sleeves brachiblades aug with save migration --- src/SaveObject.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/SaveObject.tsx b/src/SaveObject.tsx index 3392abede..70ab08b9a 100755 --- a/src/SaveObject.tsx +++ b/src/SaveObject.tsx @@ -244,6 +244,18 @@ function evaluateVersionCompatibility(ver: string | number): void { StockMarket[LocationName.Sector12JoesGuns] = s; } } + if (ver < 10) { + // Augmentation name was changed in 0.56.0 but sleeves aug list was missed. + if (anyPlayer.sleeves && anyPlayer.sleeves.length > 0) { + for (const sleeve of anyPlayer.sleeves) { + if (!sleeve.augmentations || sleeve.augmentations.length === 0) continue; + for (const augmentation of sleeve.augmentations) { + if (augmentation.name !== "Graphene BranchiBlades Upgrade") continue; + augmentation.name = "Graphene BrachiBlades Upgrade"; + } + } + } + } } }