Changelog and markdown update

This commit is contained in:
Snarling
2023-04-28 14:19:30 -04:00
parent e1aff1a315
commit 8f684fa74c
41 changed files with 397 additions and 1002 deletions

View File

@@ -21,22 +21,10 @@ Array containing current stamina and max stamina.
RAM cost: 4 GB Returns an array with two elements: \* \[Current stamina, Max stamina\]
## Example 1
## Example
```ts
// NS1:
function getStaminaPercentage() {
var res = bladeburner.getStamina();
return res[0] / res[1];
}
```
## Example 2
```ts
// NS2:
```js
function getStaminaPercentage() {
const [current, max] = ns.bladeburner.getStamina();
return current / max;