mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-21 05:35:45 +01:00
06a985bdf8
This reverts commit bbb6e3f309935aebac74ddb1fbeec12dfb7540b1.
2.6 KiB
2.6 KiB
Hacknet interface
Hacknet API
Signature:
export 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. |
getHashUpgradeLevel(upgName) | Get the level of a hash upgrade. |
getHashUpgrades() | Get the list of hash upgrades |
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. |
getStudyMult() | Get the multiplier to study. |
getTrainingMult() | Get the multiplier to training. |
hashCapacity() | Get the maximum number of hashes you can store. |
hashCost(upgName, count) | Get the cost of a hash upgrade. |
maxNumNodes() | Get the maximum number of hacknet nodes. |
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, count) | 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. |