API: Change type of skill name parameter of skillMaxUpgradeCount API (#1712)

This commit is contained in:
catloversg 2024-10-22 10:39:56 +07:00 committed by GitHub
parent c5e50ba327
commit 3ce2ae5fd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 3 deletions

@ -9,14 +9,18 @@ Calculate the number of times that you can upgrade a skill.
**Signature:**
```typescript
skillMaxUpgradeCount(name: string, level: number, skillPoints: number): number;
skillMaxUpgradeCount(
name: BladeburnerSkillName | `${BladeburnerSkillName}`,
level: number,
skillPoints: number,
): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| name | string | Skill name. It's case-sensitive and must be an exact match. |
| name | [BladeburnerSkillName](./bitburner.bladeburnerskillname.md) \| \`${[BladeburnerSkillName](./bitburner.bladeburnerskillname.md)<!-- -->}\` | Skill name. It's case-sensitive and must be an exact match. |
| level | number | Skill level. It must be a non-negative number. |
| skillPoints | number | Number of skill points to upgrade the skill. It must be a positive number. |

@ -5332,7 +5332,11 @@ interface BladeburnerFormulas {
* @param skillPoints - Number of skill points to upgrade the skill. It must be a positive number.
* @returns Number of times that you can upgrade the skill.
*/
skillMaxUpgradeCount(name: string, level: number, skillPoints: number): number;
skillMaxUpgradeCount(
name: BladeburnerSkillName | `${BladeburnerSkillName}`,
level: number,
skillPoints: number,
): number;
}
/**