mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-03 13:03:48 +01:00
e9dfe3c389
* Updated ram cost of documentation * v0.47.3 Co-authored-by: Samuel A. Lamb <samuei@users.noreply.github.com>
17 lines
354 B
ReStructuredText
17 lines
354 B
ReStructuredText
getStamina() Netscript Function
|
|
===============================
|
|
|
|
.. js:function:: getStamina()
|
|
:RAM cost: 4 GB
|
|
|
|
Returns an array with two elements:
|
|
|
|
[Current stamina, Max stamina]
|
|
|
|
Example usage::
|
|
|
|
function getStaminaPercentage() {
|
|
let res = bladeburner.getStamina();
|
|
return res[0] / res[1];
|
|
}
|