Merge pull request #3290 from danielyxie/dev

Fix ns.kill
This commit is contained in:
hydroflame 2022-03-30 13:17:09 -04:00 committed by GitHub
commit 4340460a35
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

@ -1117,9 +1117,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
workerScript.log("spawn", () => "Exiting..."); workerScript.log("spawn", () => "Exiting...");
} }
}, },
kill: function (_filename: unknown, _hostname?: unknown, ...scriptArgs: any[]): boolean { kill: function (filename: any, hostname?: any, ...scriptArgs: any[]): boolean {
const filename = helper.string("kill", "filename", _filename);
const hostname = helper.string("kill", "hostname", _hostname);
updateDynamicRam("kill", getRamCost(Player, "kill")); updateDynamicRam("kill", getRamCost(Player, "kill"));
let res; let res;