Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 692 Bytes

bitburner.bladeburner.getstamina.md

File metadata and controls

33 lines (20 loc) · 692 Bytes

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