bitburner-src/markdown/bitburner.gang.getequipmentcost.md

33 lines
813 B
Markdown
Raw Normal View History

2021-10-30 18:34:14 +02:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [Gang](./bitburner.gang.md) &gt; [getEquipmentCost](./bitburner.gang.getequipmentcost.md)
## Gang.getEquipmentCost() method
2021-11-03 05:27:21 +01:00
Get cost of equipment.
2021-10-30 18:34:14 +02:00
<b>Signature:</b>
```typescript
2021-11-03 05:27:21 +01:00
getEquipmentCost(equipName: string): number;
2021-10-30 18:34:14 +02:00
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
2021-11-03 05:27:21 +01:00
| equipName | string | Name of equipment. |
2021-10-30 18:34:14 +02:00
<b>Returns:</b>
number
Cost to purchase the specified Equipment/Augmentation (number). Infinity for invalid arguments
## Remarks
2021-10-30 21:46:34 +02:00
RAM cost: 2 GB
2021-10-30 18:34:14 +02:00
2021-11-03 05:27:21 +01:00
Get the amount of money it takes to purchase a piece of Equipment or an Augmentation. If an invalid Equipment/Augmentation is specified, this function will return Infinity.