move route to terminal to the inside of the common fucntion

* tested without bandaid still works correctly
* fix default script with installAugmentations
This commit is contained in:
phyzical
2022-04-04 18:29:43 +08:00
parent acfd164927
commit dfe9e98c77
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ export function NetscriptSingularity(
workerScript.running = false;
killWorkerScript(workerScript);
},
installAugmentations: function (_cbScript: unknown): boolean {
installAugmentations: function (_cbScript: unknown = ""): boolean {
const cbScript = helper.string("installAugmentations", "cbScript", _cbScript);
helper.updateDynamicRam("installAugmentations", getRamCost(player, "installAugmentations"));
helper.checkSingularityAccess("installAugmentations");