hotfix some blade netscript functions not working

This commit is contained in:
Olivier Gagnon 2021-08-19 11:04:01 -04:00
parent 1a1a43c1ce
commit ee3530d9b9
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")); updateDynamicRam("startAction", getRamCost("bladeburner", "startAction"));
checkBladeburnerAccess("startAction"); checkBladeburnerAccess("startAction");
try { try {
return Player.bladeburner.startActionNetscriptFn(type, name, workerScript); return Player.bladeburner.startActionNetscriptFn(Player, type, name, workerScript);
} catch(e) { } catch(e) {
throw makeRuntimeErrorMsg("bladeburner.startAction", e); throw makeRuntimeErrorMsg("bladeburner.startAction", e);
} }
@ -3874,7 +3874,7 @@ function NetscriptFunctions(workerScript) {
updateDynamicRam("getActionTime", getRamCost("bladeburner", "getActionTime")); updateDynamicRam("getActionTime", getRamCost("bladeburner", "getActionTime"));
checkBladeburnerAccess("getActionTime"); checkBladeburnerAccess("getActionTime");
try { try {
return Player.bladeburner.getActionTimeNetscriptFn(type, name, workerScript); return Player.bladeburner.getActionTimeNetscriptFn(Player, type, name, workerScript);
} catch(e) { } catch(e) {
throw makeRuntimeErrorMsg("bladeburner.getActionTime", e); throw makeRuntimeErrorMsg("bladeburner.getActionTime", e);
} }
@ -3883,7 +3883,7 @@ function NetscriptFunctions(workerScript) {
updateDynamicRam("getActionEstimatedSuccessChance", getRamCost("bladeburner", "getActionEstimatedSuccessChance")); updateDynamicRam("getActionEstimatedSuccessChance", getRamCost("bladeburner", "getActionEstimatedSuccessChance"));
checkBladeburnerAccess("getActionEstimatedSuccessChance"); checkBladeburnerAccess("getActionEstimatedSuccessChance");
try { try {
return Player.bladeburner.getActionEstimatedSuccessChanceNetscriptFn(type, name, workerScript); return Player.bladeburner.getActionEstimatedSuccessChanceNetscriptFn(Player, type, name, workerScript);
} catch(e) { } catch(e) {
throw makeRuntimeErrorMsg("bladeburner.getActionEstimatedSuccessChance", e); throw makeRuntimeErrorMsg("bladeburner.getActionEstimatedSuccessChance", e);
} }