Fix sleeves brachiblades aug with save migration

This commit is contained in:
Martin Fournier 2022-01-09 05:57:50 -05:00
parent 0de588ee17
commit 2220286062

@ -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";
}
}
}
}
}
}