mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 16:13:49 +01:00
address comments.
This commit is contained in:
parent
d422028737
commit
c421c57e56
@ -1619,7 +1619,7 @@ function NetscriptFunctions(workerScript) {
|
|||||||
},
|
},
|
||||||
getBitNodeMultipliers: function() {
|
getBitNodeMultipliers: function() {
|
||||||
updateDynamicRam("getBitNodeMultipliers", getRamCost("getBitNodeMultipliers"));
|
updateDynamicRam("getBitNodeMultipliers", getRamCost("getBitNodeMultipliers"));
|
||||||
if (Player.bitNodeN !== 5 && SourceFileFlags[5] <= 0) {
|
if (SourceFileFlags[5] <= 0 && Player.bitNodeN !== 5) {
|
||||||
throw makeRuntimeErrorMsg("getBitNodeMultipliers", "Requires Source-File 5 to run.");
|
throw makeRuntimeErrorMsg("getBitNodeMultipliers", "Requires Source-File 5 to run.");
|
||||||
}
|
}
|
||||||
let copy = Object.assign({}, BitNodeMultipliers);
|
let copy = Object.assign({}, BitNodeMultipliers);
|
||||||
|
@ -1388,8 +1388,7 @@ let Terminal = {
|
|||||||
try {
|
try {
|
||||||
if (commandArray.length < 2) {
|
if (commandArray.length < 2) {
|
||||||
postError("Incorrect number of arguments. Usage: tail [script] [arg1] [arg2]...");
|
postError("Incorrect number of arguments. Usage: tail [script] [arg1] [arg2]...");
|
||||||
} else {
|
} else if(typeof commandArray[1] === 'string') {
|
||||||
if(typeof commandArray[1] === 'string') {
|
|
||||||
const scriptName = Terminal.getFilepath(commandArray[1]);
|
const scriptName = Terminal.getFilepath(commandArray[1]);
|
||||||
if (!isScriptFilename(scriptName)) {
|
if (!isScriptFilename(scriptName)) {
|
||||||
postError("tail can only be called on .script, .ns, .js files, or by pid");
|
postError("tail can only be called on .script, .ns, .js files, or by pid");
|
||||||
@ -1417,7 +1416,6 @@ let Terminal = {
|
|||||||
}
|
}
|
||||||
logBoxCreate(runningScript);
|
logBoxCreate(runningScript);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
Terminal.postThrownError(e);
|
Terminal.postThrownError(e);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user