mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-25 23:41: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>" +
|
"-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>" +
|
"-Slightly reduced amount of exp gained from hack(), weaken(), and grow()<br>" +
|
||||||
"-Rebalanced formulas that determine crime success<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>" +
|
"v0.21.1<br>" +
|
||||||
"-IF YOUR GAME BREAKS, DO THE FOLLOWING: Options -> Soft Reset -> Save Game -> Reload Page. Sorry about that! <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>" +
|
"-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
|
//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
|
//a key. Initializes every key with a specified value that can either by a number or an array
|
||||||
//hacks from that server
|
function AllServersMap(init = 0) {
|
||||||
function AllServersMap() {
|
if (init.constructor === Array || init instanceof Array) {
|
||||||
|
this.initValue = init.splice();
|
||||||
|
}
|
||||||
|
|
||||||
for (var ip in AllServers) {
|
for (var ip in AllServers) {
|
||||||
if (AllServers.hasOwnProperty(ip)) {
|
if (AllServers.hasOwnProperty(ip)) {
|
||||||
this[ip] = 0;
|
this[ip] = init;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -551,12 +551,13 @@ var Terminal = {
|
|||||||
case iTutorialSteps.ActiveScriptsToTerminal:
|
case iTutorialSteps.ActiveScriptsToTerminal:
|
||||||
if (commandArray.length == 2 &&
|
if (commandArray.length == 2 &&
|
||||||
commandArray[0] == "tail" && commandArray[1] == "foodnstuff.script") {
|
commandArray[0] == "tail" && commandArray[1] == "foodnstuff.script") {
|
||||||
var currScripts = Player.getCurrentServer().scripts;
|
//Check that the script exists on this machine
|
||||||
for (var i = 0; i < currScripts.length; ++i) {
|
var runningScript = findRunningScript("foodnstuff.script", [], Player.getCurrentServer());
|
||||||
if ("foodnstuff.script" == currScripts[i].filename) {
|
if (runningScript == null) {
|
||||||
currScripts[i].displayLog();
|
post("Error: No such script exists");
|
||||||
}
|
return;
|
||||||
}
|
}
|
||||||
|
logBoxCreate(runningScript);
|
||||||
iTutorialNextStep();
|
iTutorialNextStep();
|
||||||
} else {post("Bad command. Please follow the tutorial");}
|
} else {post("Bad command. Please follow the tutorial");}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user