mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 22:52:29 +01:00
temp changes
This commit is contained in:
parent
c2aa8d8110
commit
15f9ef1a85
@ -654,7 +654,7 @@ CONSTANTS = {
|
||||
"-grow() and weaken() now give hacking experience based on the server's base security level, rather than a flat exp amount<br>" +
|
||||
"-Slightly reduced amount of exp gained from hack(), weaken(), and grow()<br>" +
|
||||
"-Rebalanced formulas that determine crime success<br>" +
|
||||
"-Reduced RAM cost for multithreading a script. The RAM multiplier for each thread was reduced from 1.02 to 1.01<br>"
|
||||
"-Reduced RAM cost for multithreading a script. The RAM multiplier for each thread was reduced from 1.02 to 1.01<br>" +
|
||||
"v0.21.1<br>" +
|
||||
"-IF YOUR GAME BREAKS, DO THE FOLLOWING: Options -> Soft Reset -> Save Game -> Reload Page. Sorry about that! <br>" +
|
||||
"-Autocompletion for aliases - courtesy of Github user LTCNugget<br><br>" +
|
||||
|
@ -423,12 +423,15 @@ RunningScript.fromJSON = function(value) {
|
||||
}
|
||||
|
||||
//Creates an object that creates a map/dictionary with the IP of each existing server as
|
||||
//a key, and 0 as the value. This is used to keep track of how much money a script
|
||||
//hacks from that server
|
||||
function AllServersMap() {
|
||||
//a key. Initializes every key with a specified value that can either by a number or an array
|
||||
function AllServersMap(init = 0) {
|
||||
if (init.constructor === Array || init instanceof Array) {
|
||||
this.initValue = init.splice();
|
||||
}
|
||||
|
||||
for (var ip in AllServers) {
|
||||
if (AllServers.hasOwnProperty(ip)) {
|
||||
this[ip] = 0;
|
||||
this[ip] = init;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -551,12 +551,13 @@ var Terminal = {
|
||||
case iTutorialSteps.ActiveScriptsToTerminal:
|
||||
if (commandArray.length == 2 &&
|
||||
commandArray[0] == "tail" && commandArray[1] == "foodnstuff.script") {
|
||||
var currScripts = Player.getCurrentServer().scripts;
|
||||
for (var i = 0; i < currScripts.length; ++i) {
|
||||
if ("foodnstuff.script" == currScripts[i].filename) {
|
||||
currScripts[i].displayLog();
|
||||
}
|
||||
//Check that the script exists on this machine
|
||||
var runningScript = findRunningScript("foodnstuff.script", [], Player.getCurrentServer());
|
||||
if (runningScript == null) {
|
||||
post("Error: No such script exists");
|
||||
return;
|
||||
}
|
||||
logBoxCreate(runningScript);
|
||||
iTutorialNextStep();
|
||||
} else {post("Bad command. Please follow the tutorial");}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user