mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 16:22:56 +02:00
0518
This commit is contained in:
committed by
hydroflame
parent
9a9d2e1f81
commit
6dde89f3c4
@@ -3981,7 +3981,7 @@ function NetscriptFunctions(workerScript) {
|
||||
setActionAutolevel: function(type="", name="", autoLevel=true) {
|
||||
updateDynamicRam("setActionAutolevel", getRamCost("bladeburner", "setActionAutolevel"));
|
||||
checkBladeburnerAccess("setActionAutolevel");
|
||||
const action = getBladeburnerActionObject("getActionCurrentLevel", type, name);
|
||||
const action = getBladeburnerActionObject("setActionAutolevel", type, name);
|
||||
action.autoLevel = autoLevel;
|
||||
},
|
||||
setActionLevel: function(type="", name="", level=1) {
|
||||
@@ -3991,7 +3991,7 @@ function NetscriptFunctions(workerScript) {
|
||||
if(level < 1 || level > action.maxLevel) {
|
||||
throw makeRuntimeErrorMsg("bladeburner.setActionLevel", `Level must be between 1 and ${action.maxLevel}, is ${level}`)
|
||||
}
|
||||
actionObj.level = level;
|
||||
action.level = level;
|
||||
},
|
||||
getRank: function() {
|
||||
updateDynamicRam("getRank", getRamCost("bladeburner", "getRank"));
|
||||
|
||||
Reference in New Issue
Block a user