Properly return false from craftAug

This commit is contained in:
nickofolas 2022-03-27 15:33:03 -04:00
parent 2aaf880e27
commit 9f6c827dee

@ -64,6 +64,7 @@ export function NetscriptGrafting(player: IPlayer, workerScript: WorkerScript, h
const craftableAug = new CraftableAugmentation(Augmentations[augName]);
if (player.money < craftableAug.cost) {
workerScript.log("grafting.craftAugmentation", () => `You don't have enough money to craft ${augName}`);
return false;
}
player.loseMoney(craftableAug.cost, "augmentations");