mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-27 08:27:32 +01:00
1.4 KiB
1.4 KiB
Grafting interface
Grafting API
Signature:
export interface Grafting
Remarks
This API requires Source-File 10 to use.
Methods
Method | Description |
---|---|
getAugmentationGraftPrice(augName) | Retrieve the grafting cost of an aug. |
getAugmentationGraftTime(augName) | Retrieves the time required to graft an aug. Do not use this value to determine when the ongoing grafting finishes. The ongoing grafting is affected by current intelligence level and focus bonus. You should use waitForOngoingGrafting for that purpose. |
getGraftableAugmentations() | Retrieves a list of Augmentations that can be grafted. |
graftAugmentation(augName, focus) | 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. |
waitForOngoingGrafting() | Wait until the ongoing grafting finishes or is canceled. |