JavaScript promise rejection: Loading CSS chunk katex failed. (error: https://git.brn.systems/assets/css/katex.94d26766.css). Open browser console to see more details.
bitburner-src/markdown/bitburner.bladeburner.getstamina.md
Olivier Gagnon 2b79871c02 doc
2021-11-03 00:27:21 -04:00

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];
}