mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23:48 +01:00
19 lines
555 B
ReStructuredText
19 lines
555 B
ReStructuredText
|
getHashUpgradeLevel() Netscript Function
|
||
|
========================================
|
||
|
|
||
|
.. js:function:: getHashUpgradeLevel(upgName)
|
||
|
|
||
|
:RAM cost: 0 GB
|
||
|
:param string upgName: Name of upgrade to spend hashes on. Must be an exact match.
|
||
|
:returns: level of the upgrade.
|
||
|
|
||
|
.. note:: This function is only applicable for Hacknet Servers (the upgraded version
|
||
|
of a Hacknet Node).
|
||
|
|
||
|
Example:
|
||
|
|
||
|
.. code:: javascript
|
||
|
|
||
|
hacknet.getHashUpgradeLevel("Sell for Money"); // returns: 5
|
||
|
// "Sell for Money" was bought 5 times.
|