bitburner-src/doc/source/netscript/bladeburnerapi/getStamina.rst
2021-03-11 16:48:00 -05:00

18 lines
355 B
ReStructuredText

getStamina() Netscript Function
===============================
.. js:function:: getStamina()
:RAM cost: 4 GB
Returns an array with two elements:
[Current stamina, Max stamina]
Example usage::
function getStaminaPercentage() {
let res = bladeburner.getStamina();
return res[0] / res[1];
}