From 019f2d6a11e6f42a81c4828db6d69d6f1e7f67c2 Mon Sep 17 00:00:00 2001 From: David Walker Date: Thu, 7 Dec 2023 04:33:15 -0800 Subject: [PATCH] DOCS: Add type of return for 3 formulas functions. (#967) --- markdown/bitburner.hackingformulas.growtime.md | 2 +- markdown/bitburner.hackingformulas.hacktime.md | 2 +- markdown/bitburner.hackingformulas.weakentime.md | 2 +- src/ScriptEditor/NetscriptDefinitions.d.ts | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/markdown/bitburner.hackingformulas.growtime.md b/markdown/bitburner.hackingformulas.growtime.md index d076491fb..f91b0cb3f 100644 --- a/markdown/bitburner.hackingformulas.growtime.md +++ b/markdown/bitburner.hackingformulas.growtime.md @@ -23,5 +23,5 @@ growTime(server: Server, player: Person): number; number -The calculated grow time. +The calculated grow time, in milliseconds. diff --git a/markdown/bitburner.hackingformulas.hacktime.md b/markdown/bitburner.hackingformulas.hacktime.md index e6dd3ac10..8054d2f3f 100644 --- a/markdown/bitburner.hackingformulas.hacktime.md +++ b/markdown/bitburner.hackingformulas.hacktime.md @@ -23,5 +23,5 @@ hackTime(server: Server, player: Person): number; number -The calculated hack time. +The calculated hack time, in milliseconds. diff --git a/markdown/bitburner.hackingformulas.weakentime.md b/markdown/bitburner.hackingformulas.weakentime.md index 12f5718aa..dc203334a 100644 --- a/markdown/bitburner.hackingformulas.weakentime.md +++ b/markdown/bitburner.hackingformulas.weakentime.md @@ -23,5 +23,5 @@ weakenTime(server: Server, player: Person): number; number -The calculated weaken time. +The calculated weaken time, in milliseconds. diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index ca7dfa09d..1035c87e9 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -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; }