Creates a new Home store which allows for upgrading RAM and purchasing darkweb upgrades.
The Netscript object.
The Netscript object.
Verify the purchase parameters, must be overridden by implementing classes.
Parameters for this transaction.
Whether the parameters are valid.
Purchase an upgrade, using singularity
functions.
The parameters of this transaction.
Whether the purchase 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.
Checks that user can buy "tor" or Darkweb programs.
Parameters for this transaction.
Whether the user can purchase this upgrade.
Gets the amount of money available to this store.
Available money according to this._budget
.
Gets the cheapest available upgrade.
Note: Will not include utility programs (AutoLink.exe, etc).
The cheapest upgrade, either "ram", "tor", or a program name. null
if none is purchaseable.
Gets purchase cost of upgrade, either "ram" for home RAM, "tor" for Tor router, or a program name.
The parameters for this transaction.
The cost of this upgrade.
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
andHacknet
to simplify upgrades on "home".Note: Requires access to
singularity
functions, either in BN4 or with SF4.