BUGFIX: hacknetNodeCost formula API throws when using documented optional parameter (#2577)

This commit is contained in:
catloversg
2026-03-17 02:46:06 +07:00
committed by GitHub
parent 06e6479408
commit c00da0cd87
3 changed files with 11 additions and 9 deletions

View File

@@ -6328,7 +6328,7 @@ interface HacknetNodesFormulas {
* @param mult - player cost reduction (defaults to 1)
* @returns The calculated cost.
*/
hacknetNodeCost(n: number, mult: number): number;
hacknetNodeCost(n: number, mult?: number): number;
/**
* All constants used by the game.
* @returns An object with all hacknet node constants used by the game.