mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
16 lines
334 B
ReStructuredText
16 lines
334 B
ReStructuredText
getStamina() Netscript Function
|
|
===============================
|
|
|
|
.. js:function:: getStamina()
|
|
|
|
Returns an array with two elements:
|
|
|
|
[Current stamina, Max stamina]
|
|
|
|
Example usage::
|
|
|
|
function getStaminaPercentage() {
|
|
let res = bladeburner.getStamina();
|
|
return res[0] / res[1];
|
|
}
|