SINGULARITY: Added aug and node identifiers (timestamps of last resets) (#472)

This commit is contained in:
G4mingJon4s
2023-04-12 19:13:42 +02:00
committed by GitHub
parent f761eed377
commit d01ba91654
14 changed files with 86 additions and 32 deletions
+6 -2
View File
@@ -657,8 +657,12 @@ function evaluateVersionCompatibility(ver: string | number): void {
// Prior to v2.2.0, sleeve shock was 0 to 100 internally but displayed as 100 to 0. This unifies them as 100 to 0.
for (const sleeve of Player.sleeves) sleeve.shock = 100 - sleeve.shock;
}
if (anyPlayer.hashManager !== undefined) {
anyPlayer.hashManager.upgrades["Company Favor"] ??= 0;
if (ver < 31) {
if (anyPlayer.hashManager !== undefined) {
anyPlayer.hashManager.upgrades["Company Favor"] ??= 0;
}
anyPlayer.lastAugReset ??= anyPlayer.lastUpdate - anyPlayer.playtimeSinceLastAug;
anyPlayer.lastNodeReset ??= anyPlayer.lastUpdate - anyPlayer.playtimeSinceLastBitnode;
}
}