mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
1.0 KiB
1.0 KiB
Home > bitburner > Grafting > graftAugmentation
Grafting.graftAugmentation() method
Begins grafting the named aug. You must be in New Tokyo to use this. When you call this API, the current work (grafting or other actions) will be canceled.
Signature:
graftAugmentation(augName: string, focus?: boolean): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
augName | string | The name of the aug to begin grafting. Must be an exact match. |
focus | boolean | (Optional) Acquire player focus on this Augmentation grafting. Optional. Defaults to true. |
Returns:
boolean
True if the aug successfully began grafting, false otherwise (e.g. not enough money, or invalid Augmentation name provided).
Exceptions
Will error if called while you are not in New Tokyo.
Remarks
RAM cost: 7.5 GB