More nerfs to combat augmentations. Randomized server parameters. Added Log and Kill button to Active SCripts panel

This commit is contained in:
Daniel Xie
2017-06-19 09:54:11 -05:00
parent 8ce228c71f
commit e2fbca1ef0
14 changed files with 136 additions and 100 deletions

View File

@@ -232,6 +232,24 @@ function createActiveScriptsText(workerscript, item) {
item.appendChild(itemText);
var logButton = document.createElement("span");
logButton.innerHTML = "Log";
var killButton = document.createElement("span");
killButton.innerHTML = "Kill script";
logButton.setAttribute("class", "active-scripts-button");
killButton.setAttribute("class", "active-scripts-button");
logButton.addEventListener("click", function() {
logBoxCreate(workerscript.scriptRef);
return false;
});
killButton.addEventListener("click", function() {
killWorkerScript(workerscript.scriptRef, workerscript.scriptRef.scriptRef.server);
dialogBoxCreate("Killing script, may take a few minutes to complete...");
return false;
});
item.appendChild(logButton);
item.appendChild(killButton);
//Return total online production rate
return onlineMps;
}