mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 22:52:29 +01:00
hotfix some blade netscript functions not working
This commit is contained in:
parent
1a1a43c1ce
commit
ee3530d9b9
2
dist/engine.bundle.js
vendored
2
dist/engine.bundle.js
vendored
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user