bitburner-src/markdown/bitburner.bladeburner.getskillupgradecost.md
David Walker 79bb0d289a
Revert "API: Add types for parameters of gym-university-bladeburner API (#1591)" (#1592)
This reverts commit da8870ed796c916c19cac7c2b6328a75180367fc.
2024-08-16 13:45:54 -07:00

36 lines
1023 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [Bladeburner](./bitburner.bladeburner.md) &gt; [getSkillUpgradeCost](./bitburner.bladeburner.getskillupgradecost.md)
## Bladeburner.getSkillUpgradeCost() method
Get cost to upgrade skill.
**Signature:**
```typescript
getSkillUpgradeCost(skillName: string, count?: number): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| skillName | string | Name of skill. Case-sensitive and must be an exact match. |
| count | number | _(Optional)_ Number of times to upgrade the skill. Defaults to 1 if not specified. |
**Returns:**
number
Number of skill points needed to upgrade the specified skill.
## Remarks
RAM cost: 4 GB
This function returns the number of skill points needed to upgrade the specified skill the specified number of times.
The function returns Infinity if the sum of the current level and count exceeds the maximum level.