fix some weird eval

This commit is contained in:
Olivier Gagnon
2022-01-02 12:13:01 -05:00
parent 1e0e9f7bd7
commit d0214c1fed
6 changed files with 22 additions and 14 deletions
+8
View File
@@ -21,6 +21,7 @@ import { save } from "./db";
import { v1APIBreak } from "./utils/v1APIBreak";
import { AugmentationNames } from "./Augmentation/data/AugmentationNames";
import { PlayerOwnedAugmentation } from "./Augmentation/PlayerOwnedAugmentation";
import { LocationName } from "./Locations/data/LocationNames";
/* SaveObject.js
* Defines the object used to save/load games
@@ -233,6 +234,13 @@ function evaluateVersionCompatibility(ver: string | number): void {
}
}
}
if (ver < 9) {
if (StockMarket.hasOwnProperty("Joes Guns")) {
const s = StockMarket["Joes Guns"];
delete StockMarket["Joes Guns"];
StockMarket[LocationName.Sector12JoesGuns] = s;
}
}
}
}