Files
bitburner-src/markdown/bitburner.hacknet.md
Olivier Gagnon 2b79871c02 doc
2021-11-03 00:27:21 -04:00

2.0 KiB

Home > bitburner > Hacknet

Hacknet interface

Hacknet API

Signature:

interface Hacknet 

Remarks

Not all these functions are immediately available.

Methods

Method Description
getCacheUpgradeCost(index, n) Calculate the cost of upgrading hacknet node cache.
getCoreUpgradeCost(index, n) Calculate the cost of upgrading hacknet node cores.
getLevelUpgradeCost(index, n) Calculate the cost of upgrading hacknet node levels.
getNodeStats(index) Get the stats of a hacknet node.
getPurchaseNodeCost() Get the price of the next hacknet node.
getRamUpgradeCost(index, n) Calculate the cost of upgrading hacknet node RAM.
hashCost(upgName) Get the cost of a hash upgrade.
numHashes() Get the total number of hashes stored.
numNodes() Get the number of hacknet nodes you own.
purchaseNode() Purchase a new hacknet node.
spendHashes(upgName, upgTarget) Purchase a hash upgrade.
upgradeCache(index, n) Upgrade the cache of a hacknet node.
upgradeCore(index, n) Upgrade the core of a hacknet node.
upgradeLevel(index, n) Upgrade the level of a hacknet node.
upgradeRam(index, n) Upgrade the RAM of a hacknet node.