mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
BUGFIX: Check that the augmentation is available before installing it on a sleeve. (#1320)
This commit is contained in:
@@ -274,6 +274,9 @@ export class Sleeve extends Person implements SleevePerson {
|
||||
// Verify that this sleeve does not already have that augmentation.
|
||||
if (this.hasAugmentation(aug.name)) return false;
|
||||
|
||||
// Verify that the augmentation is available for purchase.
|
||||
if (!this.findPurchasableAugs().includes(aug)) return false;
|
||||
|
||||
Player.loseMoney(aug.baseCost, "sleeves");
|
||||
this.installAugmentation(aug);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user