bitburner-src/markdown/bitburner.ns.grow.md
Olivier Gagnon 43fc5dfd48 work on doc
2021-10-30 12:34:14 -04:00

1.7 KiB
Raw Blame History

Home > bitburner > NS > grow

NS.grow() method

Use your hacking skills to increase the amount of money available on a server. The runtime for this command depends on your hacking level and the target servers security level. When `grow` completes, the money available on a target server will be increased by a certain, fixed percentage. This percentage is determined by the target servers growth rate (which varies between servers) and security level. Generally, higher-level servers have higher growth rates. The getServerGrowth() function can be used to obtain a servers growth rate.

Like hack, `grow` can be called on any server, regardless of where the script is running. The grow() command requires root access to the target server, but there is no required hacking level to run the command. It also raises the security level of the target server by 0.004.

Signature:

grow(host: Host, opts?: BasicHGWOptions): Promise<number>;

Parameters

Parameter Type Description
host Host Hostname or IP of the target server to grow.
opts BasicHGWOptions Optional parameters for configuring function behavior.

Returns:

Promise<number>

The number by which the money on the server was multiplied for the growth.

Remarks

0.15 GB

Example

grow("foodnstuff");
grow("foodnstuff", { threads: 5 }); // Only use 5 threads to grow