Merge pull request #3299 from danielyxie/dev

Fix getScriptslOgs
This commit is contained in:
hydroflame 2022-03-30 15:32:08 -04:00 committed by GitHub
commit 8c2bfc32f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -887,9 +887,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
}
return !workerScript.disableLogs[fn];
},
getScriptLogs: function (_fn: unknown, _hostname: unknown, ...scriptArgs: any[]): string[] {
const fn = helper.string("getScriptLogs", "fn", _fn);
const hostname = helper.string("getScriptLogs", "hostname", _hostname);
getScriptLogs: function (fn: any, hostname: any, ...scriptArgs: any[]): string[] {
updateDynamicRam("getScriptLogs", getRamCost(Player, "getScriptLogs"));
const runningScriptObj = getRunningScript(fn, hostname, "getScriptLogs", scriptArgs);
if (runningScriptObj == null) {