More work on Hacking mission

This commit is contained in:
danielyxie
2017-09-25 21:44:33 -05:00
parent 5e7d72d901
commit 2523222565
8 changed files with 1149 additions and 554 deletions
+5 -1
View File
@@ -1,6 +1,7 @@
import {workerScripts,
addWorkerScript,
killWorkerScript} from "./NetscriptWorker.js";
import {Player} from "./Player.js";
import {getServer} from "./Server.js";
import {dialogBoxCreate} from "../utils/DialogBox.js";
import {printArray} from "../utils/HelperFunctions.js";
@@ -182,7 +183,10 @@ function updateActiveScriptsItems() {
total += updateActiveScriptsItemContent(workerScripts[i]);
}
document.getElementById("active-scripts-total-prod").innerHTML =
"Total online production rate: $" + formatNumber(total, 2) + " / second";
"Total online production of Active Scripts: $" + formatNumber(total, 2) + " / second<br>" +
"Total online production since last Augmentation installation: $" +
formatNumber(Player.scriptProdSinceLastAug, 2) + " ($" +
formatNumber(Player.scriptProdSinceLastAug / Player.playtimeSinceLastAug, 2) + " / second)";
return total;
}