bitburner-src/markdown/bitburner.bladeburner.getstamina.md
2023-04-28 14:45:55 -04:00

692 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() {
   const [current, max] = ns.bladeburner.getStamina();
   return current / max;
}