mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-09-19 20:38:42 +02:00
27 lines
582 B
Markdown
27 lines
582 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Corporation](./bitburner.corporation.md) > [getUnlockCost](./bitburner.corporation.getunlockcost.md)
|
|
|
|
## Corporation.getUnlockCost() method
|
|
|
|
Gets the cost to unlock a one time unlockable upgrade
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
getUnlockCost(upgradeName: string): number;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| upgradeName | string | Name of the upgrade |
|
|
|
|
**Returns:**
|
|
|
|
number
|
|
|
|
cost of the upgrade
|
|
|