mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-02 05:47:14 +02:00
SINGULARITY: Added aug and node identifiers (timestamps of last resets) (#472)
This commit is contained in:
+6
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user