From f04ee5a65c053c4ad24e27f5fb8d67f5e9a80600 Mon Sep 17 00:00:00 2001 From: parax Date: Fri, 18 Mar 2022 21:37:59 -0600 Subject: [PATCH] Linted file --- src/NetscriptFunctions/Sleeve.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NetscriptFunctions/Sleeve.ts b/src/NetscriptFunctions/Sleeve.ts index f3aaafa8d..2246f61f7 100644 --- a/src/NetscriptFunctions/Sleeve.ts +++ b/src/NetscriptFunctions/Sleeve.ts @@ -288,11 +288,11 @@ export function NetscriptSleeve(player: IPlayer, workerScript: WorkerScript, hel helper.updateDynamicRam("purchaseSleeveAug", getRamCost(player, "sleeve", "purchaseSleeveAug")); checkSleeveAPIAccess("purchaseSleeveAug"); checkSleeveNumber("purchaseSleeveAug", sleeveNumber); - + if (player.sleeves[sleeveNumber].shock > 0){ throw helper.makeRuntimeErrorMsg("sleeve.purchaseSleeveAug", `Sleeve shock too high: Sleeve ${sleeveNumber}`); } - + const aug = Augmentations[augName]; if (!aug) { throw helper.makeRuntimeErrorMsg("sleeve.purchaseSleeveAug", `Invalid aug: ${augName}`);