Improve comments

This commit is contained in:
Isaac Shoebottom 2023-11-13 14:16:29 -04:00
parent 461775a92f
commit 78d8153f8e

View File

@ -20,7 +20,7 @@ export async function main(ns: NS) {
do { do {
let restart = false let restart = false
if (Math.min(...levels) <= hackingLevel) { if (Math.min(...levels) <= hackingLevel) {
ns.tprint(`Hacking level increased past ${Math.min(...levels)}}, is now ${hackingLevel}`) ns.tprint(`Hacking level increased to/past ${Math.min(...levels)}, is now ${hackingLevel}`)
ns.tprint(`Remaining levels to hack: ${levels}`) ns.tprint(`Remaining levels to hack: ${levels}`)
// remove the level from the list, so we don't try to hack it again // remove the level from the list, so we don't try to hack it again
levels = levels.filter(level => level > hackingLevel) levels = levels.filter(level => level > hackingLevel)