bitburner-src/doc/source/netscript/bladeburnerapi/getStamina.rst

15 lines
318 B
ReStructuredText
Raw Normal View History

getStamina() Netscript Function
===============================
.. js:function:: getStamina()
2021-03-11 22:48:00 +01:00
:RAM cost: 4 GB
2021-03-12 08:51:56 +01:00
:returns: Array with two elements [Current stamina, Max stamina]
2021-03-12 08:51:56 +01:00
Example:
2021-03-12 08:51:56 +01:00
.. code-block:: javascript
2021-03-12 08:51:56 +01:00
res = bladeburner.getStamina();
percentage = res[0] / res[1];