You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah that's my bad, pretty sure I messed that up. Checking the documentation verifies that level was supposed to be optional.
Moving the type verification for level after retrieving the action means we can select the correct default level, and we can also make rewardMultiplier a constant instead of needing to define it multiple ways based on a conditional.
bitburner-src/src/NetscriptFunctions/Bladeburner.ts
Lines 141 to 155 in 303c54c
On line 148, it seems the intention is make level parameter optional; if level parameter is not given, use current level of given action.
However, on line 144, if level parameter is not given properly, runtime error is thrown.
The text was updated successfully, but these errors were encountered: