mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 22:52:29 +01:00
15 lines
318 B
ReStructuredText
15 lines
318 B
ReStructuredText
getStamina() Netscript Function
|
|
===============================
|
|
|
|
.. js:function:: getStamina()
|
|
|
|
:RAM cost: 4 GB
|
|
:returns: Array with two elements [Current stamina, Max stamina]
|
|
|
|
Example:
|
|
|
|
.. code-block:: javascript
|
|
|
|
res = bladeburner.getStamina();
|
|
percentage = res[0] / res[1];
|