helpers.hack weaken grow - vladzaharia/bitburner GitHub Wiki

Module: helpers/hack-weaken-grow

Table of contents

Functions

Executable

main

main(ns): Promise<void>

run /helpers/a serial hack/weaken/grow script via the Terminal.

deprecated Serial HWG has been replaced with /node/ps-control-scheduler.js as the recommended way to run HWG.

export

example Run HWG on a single passed in host.

run /helpers/hack-weaken-grow.js [host0]

example Run HWG on multiple passed in hosts.

run /helpers/hack-weaken-grow.js [host0] ... [hostn]

Parameters

Name Type Description
ns NS The Netscript object.

Returns

Promise<void>

Defined in

helpers/hack-weaken-grow.ts:31

Importable

hackWeakenGrow

hackWeakenGrow(ns, hostname): Promise<number>

Run serial HWG on given hostname.

export

async

deprecated Serial HWG is not recommended. Please use a parallelized HWG with thread count percentages instead.

Parameters

Name Type Description
ns NS The Netscript object.
hostname string The hostname to run HWG on.

Returns

Promise<number>

The amount of money hacked, minus any growth action taken.

Defined in

helpers/hack-weaken-grow.ts:59

⚠️ **GitHub.com Fallback** ⚠️