mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
BLADEBURNER: Add API to calculate max upgrade count of skill (#1475)
This commit is contained in:
18
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
18
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -5110,6 +5110,22 @@ interface GangFormulas {
|
||||
ascensionMultiplier(points: number): number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Bladeburner formulas
|
||||
* @public
|
||||
*/
|
||||
interface BladeburnerFormulas {
|
||||
/**
|
||||
* Calculate the number of times that you can upgrade a skill.
|
||||
*
|
||||
* @param name - Skill name. It's case-sensitive and must be an exact match.
|
||||
* @param level - Skill level. It must be a non-negative 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.
|
||||
*/
|
||||
skillMaxUpgradeCount(name: string, level: number, skillPoints: number): number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Formulas API
|
||||
* @remarks
|
||||
@@ -5134,6 +5150,8 @@ export interface Formulas {
|
||||
gang: GangFormulas;
|
||||
/** Work formulas */
|
||||
work: WorkFormulas;
|
||||
/** Bladeburner formulas */
|
||||
bladeburner: BladeburnerFormulas;
|
||||
}
|
||||
|
||||
/** @public */
|
||||
|
||||
Reference in New Issue
Block a user