mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
* Update api-documentor and api-extractor. #1566 follow-up.
I have verified that the HTML/markdown table generation bug in
[#4878](https://github.com/microsoft/rushstack/issues/4878) in rushstack
for api-documentor has been fixed as per rushstack#5256. The testcase
[repro](https://github.com/catloversg/api-documenter-bug-pr-4578) now
produces the correct expected output.
I have confirmed that the generated output in bitburner from
`npm run doc` now generated HTML tables, and correctly inserts
a blank line between the </table> and the follow line (e.g. Returns).
Stylisticly it could use some whitespace, but it is correctly rendered.
This commit is only the updated packages, not the updated generated
documentation. I assume that is automatically generated by the GitHub
workflow.
* Follow up to 5f732a6f35, include `npm run doc` changed docs.
* Add missing license info
* Fix React warning
---------
Co-authored-by: CatLover <152669316+catloversg@users.noreply.github.com>
265 lines
3.2 KiB
Markdown
265 lines
3.2 KiB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Hacknet](./bitburner.hacknet.md)
|
|
|
|
## Hacknet interface
|
|
|
|
Hacknet API
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
export interface Hacknet
|
|
```
|
|
|
|
## Remarks
|
|
|
|
Not all these functions are immediately available.
|
|
|
|
## Methods
|
|
|
|
<table><thead><tr><th>
|
|
|
|
Method
|
|
|
|
|
|
</th><th>
|
|
|
|
Description
|
|
|
|
|
|
</th></tr></thead>
|
|
<tbody><tr><td>
|
|
|
|
[getCacheUpgradeCost(index, n)](./bitburner.hacknet.getcacheupgradecost.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Calculate the cost of upgrading hacknet node cache.
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[getCoreUpgradeCost(index, n)](./bitburner.hacknet.getcoreupgradecost.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Calculate the cost of upgrading hacknet node cores.
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[getHashUpgradeLevel(upgName)](./bitburner.hacknet.gethashupgradelevel.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Get the level of a hash upgrade.
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[getHashUpgrades()](./bitburner.hacknet.gethashupgrades.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Get the list of hash upgrades
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[getLevelUpgradeCost(index, n)](./bitburner.hacknet.getlevelupgradecost.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Calculate the cost of upgrading hacknet node levels.
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[getNodeStats(index)](./bitburner.hacknet.getnodestats.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Get the stats of a hacknet node.
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[getPurchaseNodeCost()](./bitburner.hacknet.getpurchasenodecost.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Get the price of the next hacknet node.
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[getRamUpgradeCost(index, n)](./bitburner.hacknet.getramupgradecost.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Calculate the cost of upgrading hacknet node RAM.
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[getStudyMult()](./bitburner.hacknet.getstudymult.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Get the multiplier to study.
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[getTrainingMult()](./bitburner.hacknet.gettrainingmult.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Get the multiplier to training.
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[hashCapacity()](./bitburner.hacknet.hashcapacity.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Get the maximum number of hashes you can store.
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[hashCost(upgName, count)](./bitburner.hacknet.hashcost.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Get the cost of a hash upgrade.
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[maxNumNodes()](./bitburner.hacknet.maxnumnodes.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Get the maximum number of hacknet nodes.
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[numHashes()](./bitburner.hacknet.numhashes.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Get the total number of hashes stored.
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[numNodes()](./bitburner.hacknet.numnodes.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Get the number of hacknet nodes you own.
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[purchaseNode()](./bitburner.hacknet.purchasenode.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Purchase a new hacknet node.
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[spendHashes(upgName, upgTarget, count)](./bitburner.hacknet.spendhashes.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Purchase a hash upgrade.
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[upgradeCache(index, n)](./bitburner.hacknet.upgradecache.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Upgrade the cache of a hacknet node.
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[upgradeCore(index, n)](./bitburner.hacknet.upgradecore.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Upgrade the core of a hacknet node.
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[upgradeLevel(index, n)](./bitburner.hacknet.upgradelevel.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Upgrade the level of a hacknet node.
|
|
|
|
|
|
</td></tr>
|
|
<tr><td>
|
|
|
|
[upgradeRam(index, n)](./bitburner.hacknet.upgraderam.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Upgrade the RAM of a hacknet node.
|
|
|
|
|
|
</td></tr>
|
|
</tbody></table>
|
|
|