mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 21:25:47 +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];
|