mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-08 16:53:54 +01:00
34 lines
684 B
Markdown
34 lines
684 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Bladeburner](./bitburner.bladeburner.md) > [getStamina](./bitburner.bladeburner.getstamina.md)
|
|
|
|
## Bladeburner.getStamina() method
|
|
|
|
Get bladeburner stamina.
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
getStamina(): [number, number];
|
|
```
|
|
<b>Returns:</b>
|
|
|
|
\[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
|
|
|
|
|
|
```ts
|
|
function getStaminaPercentage() {
|
|
let res = bladeburner.getStamina();
|
|
return res[0] / res[1];
|
|
}
|
|
```
|
|
|