2022-10-21 17:16:00 +02:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
2023-05-16 00:06:57 +02:00
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Corporation](./bitburner.corporation.md) > [getUnlockCost](./bitburner.corporation.getunlockcost.md)
|
2022-10-21 17:16:00 +02:00
|
|
|
|
2023-05-16 00:06:57 +02:00
|
|
|
## Corporation.getUnlockCost() method
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
Gets the cost to unlock a one time unlockable upgrade
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Signature:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
```typescript
|
2023-05-16 00:06:57 +02:00
|
|
|
getUnlockCost(upgradeName: string): number;
|
2022-10-21 17:16:00 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| upgradeName | string | Name of the upgrade |
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Returns:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
number
|
|
|
|
|
|
|
|
cost of the upgrade
|
|
|
|
|