work to make documentation unified.

This commit is contained in:
Olivier Gagnon
2021-03-12 02:51:56 -05:00
parent a00c253dcb
commit 2ce6ff2041
176 changed files with 1325 additions and 916 deletions
@@ -4,14 +4,11 @@ getStamina() Netscript Function
.. js:function:: getStamina()
:RAM cost: 4 GB
:returns: Array with two elements [Current stamina, Max stamina]
Returns an array with two elements:
Example:
[Current stamina, Max stamina]
.. code-block:: javascript
Example usage::
function getStaminaPercentage() {
let res = bladeburner.getStamina();
return res[0] / res[1];
}
res = bladeburner.getStamina();
percentage = res[0] / res[1];