mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 12:45:45 +01:00
MISC: Clarify deprecation warning of ns.getTimeSinceLastAug() (#1535)
This commit is contained in:
parent
7c7293b687
commit
1b9676c68e
@ -1633,7 +1633,11 @@ export const ns: InternalAPI<NSFull> = {
|
||||
return convertTimeMsToTimeElapsedString(milliseconds, milliPrecision);
|
||||
},
|
||||
getTimeSinceLastAug: () => () => {
|
||||
deprecationWarning("ns.getTimeSinceLastAug()", "Use ns.getResetInfo().lastAugReset instead.");
|
||||
deprecationWarning(
|
||||
"ns.getTimeSinceLastAug()",
|
||||
"Use `Date.now() - ns.getResetInfo().lastAugReset` instead. Please note that ns.getResetInfo().lastAugReset does NOT return the " +
|
||||
"same value as ns.getTimeSinceLastAug(). Check the NS API documentation for details.",
|
||||
);
|
||||
return Player.playtimeSinceLastAug;
|
||||
},
|
||||
alert: (ctx) => (_message) => {
|
||||
|
Loading…
Reference in New Issue
Block a user