mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
61 lines
852 B
Markdown
61 lines
852 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Hacknet](./bitburner.hacknet.md) > [getHashUpgradeLevel](./bitburner.hacknet.gethashupgradelevel.md)
|
|
|
|
## Hacknet.getHashUpgradeLevel() method
|
|
|
|
Get the level of a hash upgrade.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
getHashUpgradeLevel(upgName: HacknetServerHashUpgrade): number;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
<table><thead><tr><th>
|
|
|
|
Parameter
|
|
|
|
|
|
</th><th>
|
|
|
|
Type
|
|
|
|
|
|
</th><th>
|
|
|
|
Description
|
|
|
|
|
|
</th></tr></thead>
|
|
<tbody><tr><td>
|
|
|
|
upgName
|
|
|
|
|
|
</td><td>
|
|
|
|
[HacknetServerHashUpgrade](./bitburner.hacknetserverhashupgrade.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
</td></tr>
|
|
</tbody></table>
|
|
|
|
**Returns:**
|
|
|
|
number
|
|
|
|
Level of the upgrade.
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 0.5 GB
|
|
|
|
This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).
|
|
|