mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 13:15:48 +01:00
fix grow doc (#136)
This commit is contained in:
parent
3af6e7db45
commit
1d0d4f8da6
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -4663,13 +4663,13 @@ export interface NS {
|
|||||||
* ```ts
|
* ```ts
|
||||||
* // NS1:
|
* // NS1:
|
||||||
* var currentMoney = getServerMoneyAvailable("foodnstuff");
|
* var currentMoney = getServerMoneyAvailable("foodnstuff");
|
||||||
* currentMoney = currentMoney * (1 + grow("foodnstuff"));
|
* currentMoney = currentMoney * grow("foodnstuff");
|
||||||
* ```
|
* ```
|
||||||
* @example
|
* @example
|
||||||
* ```ts
|
* ```ts
|
||||||
* // NS2:
|
* // NS2:
|
||||||
* let currentMoney = ns.getServerMoneyAvailable("foodnstuff");
|
* let currentMoney = ns.getServerMoneyAvailable("foodnstuff");
|
||||||
* currentMoney *= (1 + await ns.grow("foodnstuff"));
|
* currentMoney *= await ns.grow("foodnstuff");
|
||||||
* ```
|
* ```
|
||||||
* @param host - Hostname of the target server to grow.
|
* @param host - Hostname of the target server to grow.
|
||||||
* @param opts - Optional parameters for configuring function behavior.
|
* @param opts - Optional parameters for configuring function behavior.
|
||||||
|
Loading…
Reference in New Issue
Block a user