mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 16:13:49 +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];
|