mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
API: Change type of skill name parameter of skillMaxUpgradeCount API (#1712)
This commit is contained in:
parent
c5e50ba327
commit
3ce2ae5fd7
@ -9,14 +9,18 @@ Calculate the number of times that you can upgrade a skill.
|
|||||||
**Signature:**
|
**Signature:**
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
skillMaxUpgradeCount(name: string, level: number, skillPoints: number): number;
|
skillMaxUpgradeCount(
|
||||||
|
name: BladeburnerSkillName | `${BladeburnerSkillName}`,
|
||||||
|
level: number,
|
||||||
|
skillPoints: number,
|
||||||
|
): number;
|
||||||
```
|
```
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
|
|
||||||
| Parameter | Type | Description |
|
| 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. |
|
| 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. |
|
| skillPoints | number | Number of skill points to upgrade the skill. It must be a positive number. |
|
||||||
|
|
||||||
|
6
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
6
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -5332,7 +5332,11 @@ interface BladeburnerFormulas {
|
|||||||
* @param skillPoints - Number of skill points to upgrade the skill. It must be a positive number.
|
* @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.
|
* @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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user