mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-09 17:23:53 +01:00
785 B
785 B
Home > bitburner > Bladeburner > getStamina
Bladeburner.getStamina() method
You have to be employed in the Bladeburner division and be in BitNode-7 or have Source-File 7 in order to use this function.
Returns an array with two elements: * [Current stamina, Max stamina]
Signature:
getStamina(): [number, number];
Returns:
number, number
Array containing current stamina and max stamina.
Remarks
RAM cost: 4 GB
Example
function getStaminaPercentage() {
let res = bladeburner.getStamina();
return res[0] / res[1];
}