mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 18:50:56 +02:00
format, lint, more enums, revert fn rename
This commit is contained in:
+1
-2
@@ -145,8 +145,7 @@ const Engine: {
|
||||
},
|
||||
|
||||
decrementAllCounters: function (numCycles = 1) {
|
||||
for (const counterName of Object.keys(Engine.Counters)) {
|
||||
const counter = Engine.Counters[counterName];
|
||||
for (const [counterName, counter] of Object.entries(Engine.Counters)) {
|
||||
if (counter === undefined) throw new Error("counter should not be undefined");
|
||||
Engine.Counters[counterName] = counter - numCycles;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user