mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-08 08:43:53 +01:00
DOCS: Add type of return for 3 formulas functions. (#967)
This commit is contained in:
parent
b46b6e62bc
commit
019f2d6a11
@ -23,5 +23,5 @@ growTime(server: Server, player: Person): number;
|
||||
|
||||
number
|
||||
|
||||
The calculated grow time.
|
||||
The calculated grow time, in milliseconds.
|
||||
|
||||
|
@ -23,5 +23,5 @@ hackTime(server: Server, player: Person): number;
|
||||
|
||||
number
|
||||
|
||||
The calculated hack time.
|
||||
The calculated hack time, in milliseconds.
|
||||
|
||||
|
@ -23,5 +23,5 @@ weakenTime(server: Server, player: Person): number;
|
||||
|
||||
number
|
||||
|
||||
The calculated weaken time.
|
||||
The calculated weaken time, in milliseconds.
|
||||
|
||||
|
6
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
6
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -4240,21 +4240,21 @@ interface HackingFormulas {
|
||||
* Calculate hack time.
|
||||
* @param server - Server info, typically from {@link NS.getServer | getServer}
|
||||
* @param player - Player info, typically from {@link NS.getPlayer | getPlayer}
|
||||
* @returns The calculated hack time.
|
||||
* @returns The calculated hack time, in milliseconds.
|
||||
*/
|
||||
hackTime(server: Server, player: Person): number;
|
||||
/**
|
||||
* Calculate grow time.
|
||||
* @param server - Server info, typically from {@link NS.getServer | getServer}
|
||||
* @param player - Player info, typically from {@link NS.getPlayer | getPlayer}
|
||||
* @returns The calculated grow time.
|
||||
* @returns The calculated grow time, in milliseconds.
|
||||
*/
|
||||
growTime(server: Server, player: Person): number;
|
||||
/**
|
||||
* Calculate weaken time.
|
||||
* @param server - Server info, typically from {@link NS.getServer | getServer}
|
||||
* @param player - Player info, typically from {@link NS.getPlayer | getPlayer}
|
||||
* @returns The calculated weaken time.
|
||||
* @returns The calculated weaken time, in milliseconds.
|
||||
*/
|
||||
weakenTime(server: Server, player: Person): number;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user