Merge pull request #1061 from danielyxie/dev

hotfix some blade netscript functions not working
This commit is contained in:
hydroflame 2021-08-19 11:04:24 -04:00 committed by GitHub
commit 3826de72ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

@ -3855,7 +3855,7 @@ function NetscriptFunctions(workerScript) {
updateDynamicRam("startAction", getRamCost("bladeburner", "startAction"));
checkBladeburnerAccess("startAction");
try {
return Player.bladeburner.startActionNetscriptFn(type, name, workerScript);
return Player.bladeburner.startActionNetscriptFn(Player, type, name, workerScript);
} catch(e) {
throw makeRuntimeErrorMsg("bladeburner.startAction", e);
}
@ -3874,7 +3874,7 @@ function NetscriptFunctions(workerScript) {
updateDynamicRam("getActionTime", getRamCost("bladeburner", "getActionTime"));
checkBladeburnerAccess("getActionTime");
try {
return Player.bladeburner.getActionTimeNetscriptFn(type, name, workerScript);
return Player.bladeburner.getActionTimeNetscriptFn(Player, type, name, workerScript);
} catch(e) {
throw makeRuntimeErrorMsg("bladeburner.getActionTime", e);
}
@ -3883,7 +3883,7 @@ function NetscriptFunctions(workerScript) {
updateDynamicRam("getActionEstimatedSuccessChance", getRamCost("bladeburner", "getActionEstimatedSuccessChance"));
checkBladeburnerAccess("getActionEstimatedSuccessChance");
try {
return Player.bladeburner.getActionEstimatedSuccessChanceNetscriptFn(type, name, workerScript);
return Player.bladeburner.getActionEstimatedSuccessChanceNetscriptFn(Player, type, name, workerScript);
} catch(e) {
throw makeRuntimeErrorMsg("bladeburner.getActionEstimatedSuccessChance", e);
}