mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 14:42:28 +01:00
684 B
684 B
Home > bitburner > Bladeburner > getStamina
Bladeburner.getStamina() method
Get bladeburner stamina.
Signature:
getStamina(): [number, number];
Returns:
number, number
Array containing current stamina and max stamina.
Remarks
RAM cost: 4 GB Returns an array with two elements: * [Current stamina, Max stamina]
Example
function getStaminaPercentage() {
let res = bladeburner.getStamina();
return res[0] / res[1];
}