mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-24 00:23:49 +01:00
75dabd10be
Also, improve docs.
1.6 KiB
1.6 KiB
Home > bitburner > HackingFormulas > growPercent
HackingFormulas.growPercent() method
Calculate the growth multiplier constant for a given server and threads.
The actual amount of money grown depends both linearly *and* exponentially on threads; this is only giving the exponential part that is used for the multiplier. See grow for more details.
As a result of the above, this multiplier does *not* depend on the amount of money on the server. Changing server.moneyAvailable and server.moneyMax will have no effect.
For the most common use-cases, you probably want either formulas.hacking.growThreads or formulas.hacking.growAmount instead.
Signature:
growPercent(server: Server, threads: number, player: Person, cores?: number): number;
Parameters
Parameter | Type | Description |
---|---|---|
server | Server | Server info, typically from getServer |
threads | number | Amount of threads. Can be fractional. |
player | Person | Player info, typically from getPlayer |
cores | number | (Optional) Number of cores on the computer that will execute grow. |
Returns:
number
The calculated grow percent.