Update scripts/vanguard.js, README.md

This commit is contained in:
Zakary Timson 2022-03-09 20:59:45 +00:00
parent c9a5f3d9bc
commit 851ef2b01b
2 changed files with 4 additions and 4 deletions

View File

@ -180,13 +180,13 @@ Options:
### [vanguard.js](./scripts/vanguard.js)
**RAM:** 1.90 GB
Weaken the device indefinitely.
Weaken a device indefinitely.
```
[home ~/scripts]> run /scripts/vanguard.js --help
Running script with 1 thread(s), pid 1 and args: ["--help"].
/scripts/vanguard.js:
Weaken the device indefinitely.
Weaken a device indefinitely.
Usage: run vanguard.js [OPTIONS] [DEVICE]
run vanguard.js --help

View File

@ -1,7 +1,7 @@
import {ArgError, ArgParser} from './scripts/lib/arg-parser';
/**
* Weaken the device indefinitely.
* Weaken a device indefinitely.
* @params ns {NS} - BitBurner API
*/
export async function main(ns) {
@ -10,7 +10,7 @@ export async function main(ns) {
let args, counter = 0, orgSecurity, security;
const historyLength = 17;
const messageHistory = Array(historyLength).fill('');
const argParser = new ArgParser('vanguard.js', 'Weaken the device indefinitely.', null, [
const argParser = new ArgParser('vanguard.js', 'Weaken a device indefinitely.', null, [
{name: 'device', desc: 'Device to weaken, defaults to the current machine', optional: true, default: ns.getHostname(), type: 'string'},
{name: 'limit', desc: 'Limit the number of times to run', flags: ['-l', '--limit'], default: Infinity, type: 'num'}
]);