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) > [hasUnlock](./bitburner.corporation.hasunlock.md)
|
2022-10-21 17:16:00 +02:00
|
|
|
|
2023-05-16 00:06:57 +02:00
|
|
|
## Corporation.hasUnlock() method
|
2022-10-21 17:16:00 +02:00
|
|
|
|
2024-08-16 11:02:23 +02:00
|
|
|
Check if you have a one-time unlockable upgrade.
|
2022-10-21 17:16:00 +02:00
|
|
|
|
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
|
|
|
hasUnlock(upgradeName: string): boolean;
|
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
|
|
|
|
|
|
|
boolean
|
|
|
|
|
|
|
|
true if unlocked and false if not
|
|
|
|
|
2024-08-16 11:02:23 +02:00
|
|
|
## Remarks
|
|
|
|
|
|
|
|
RAM cost: 10 GB
|
|
|
|
|