Creates a new Augmentation store instance which allows for purchasing and upgrading augmentations.
The Netscript object.
Faction manager to help determine what to buy.
The Netscript object.
Verifies that the augmentation is set
Parameters for this transaction.
Whether the parameters are valid.
Check if user has enough rep for this augmentation.
Params for this transaction.
True if user has enough rep, false otherwise.
Purchase a new augmentation params.augmentation
from params.faction
.
Parameters for this transaction.
Whether the transaction was successful.
Sell an item with params params
, must be overridden by implementing classes if supported.
Parameters for this sale.
Whether the transaction was successful.
Check if user has enough money and reputation to purchase this augmentation.
Params for this transaction.
True if user can purchase, false otherwise.
Get the most expensive augmentation to purchase.
Augmentation to purchase, null if none are available.
Gets the amount of money available to this store.
Available money according to this._budget
.
Get cost of purchasing params.augmentation
.
Parameters for this transaction.
Cost of the transaction.
Purchase an item with parameters params
if there is money available.
Parameters for this transaction.
Whether the transaction was successful.
Sell an item with params params
, if possible.
Parameters for this sale.
Whether the transaction was successful.
Generated using TypeDoc
Layer on top of
NS
to simplify augmentation purchasing.