mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-25 07:32:27 +01:00
e9dfe3c389
* Updated ram cost of documentation * v0.47.3 Co-authored-by: Samuel A. Lamb <samuei@users.noreply.github.com>
16 lines
541 B
ReStructuredText
16 lines
541 B
ReStructuredText
getNumTriesRemaining() Netscript Function
|
|
=========================================
|
|
|
|
.. js:function:: getNumTriesRemaining(fn[, hostname/ip=current ip])
|
|
|
|
:param string fn: Filename of the contract
|
|
:param string hostname/ip: Hostname or IP of the server containing the contract.
|
|
Optional. Defaults to current server if not provided
|
|
|
|
Get the number of tries remaining on the contract before it
|
|
self-destructs.
|
|
|
|
:returns: Number indicating how many attempts are remaining
|
|
|
|
:RAM cost: 2 GB
|