Merge pull request #2502 from MartinFournier/fix/brachiblade-sleeve

Fix sleeves brachiblades aug with save migration
This commit is contained in:
hydroflame 2022-01-09 12:59:08 -05:00 committed by GitHub
commit 23cae6489d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -244,6 +244,18 @@ function evaluateVersionCompatibility(ver: string | number): void {
StockMarket[LocationName.Sector12JoesGuns] = s; 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";
}
}
}
}
} }
} }