mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23:48 +01:00
Merge pull request #3813 from stalefishies/doc-fix
DOCUMENTATION: FIX #2602 Remove incorrect info from getHackTime and friends
This commit is contained in:
commit
b067e05738
12
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
12
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -6209,13 +6209,13 @@ export interface NS {
|
|||||||
* Get the execution time of a hack() call.
|
* Get the execution time of a hack() call.
|
||||||
* @remarks
|
* @remarks
|
||||||
* RAM cost: 0.05 GB
|
* RAM cost: 0.05 GB
|
||||||
*When `hack` completes an amount of money is stolen depending on the player's skills.
|
*
|
||||||
|
* When `hack` completes an amount of money is stolen depending on the player's skills.
|
||||||
* Returns the amount of time in milliseconds it takes to execute the hack Netscript function on the target server.
|
* Returns the amount of time in milliseconds it takes to execute the hack Netscript function on the target server.
|
||||||
* The function takes in an optional hackLvl parameter that can be specified to see what the hack time would be at different hacking levels.
|
|
||||||
* The required time is increased by the security level of the target server and decreased by the player's hacking level.
|
* The required time is increased by the security level of the target server and decreased by the player's hacking level.
|
||||||
*
|
*
|
||||||
* @param host - Host of target server.
|
* @param host - Host of target server.
|
||||||
* @returns Returns the amount of time in milliseconds it takes to execute the hack Netscript function. Returns Infinity if called on a Hacknet Server.
|
* @returns Returns the amount of time in milliseconds it takes to execute the hack Netscript function.
|
||||||
*/
|
*/
|
||||||
getHackTime(host: string): number;
|
getHackTime(host: string): number;
|
||||||
|
|
||||||
@ -6225,11 +6225,10 @@ export interface NS {
|
|||||||
* RAM cost: 0.05 GB
|
* RAM cost: 0.05 GB
|
||||||
*
|
*
|
||||||
* Returns the amount of time in milliseconds it takes to execute the grow Netscript function on the target server.
|
* Returns the amount of time in milliseconds it takes to execute the grow Netscript function on the target server.
|
||||||
* The function takes in an optional hackLvl parameter that can be specified to see what the grow time would be at different hacking levels.
|
|
||||||
* The required time is increased by the security level of the target server and decreased by the player's hacking level.
|
* The required time is increased by the security level of the target server and decreased by the player's hacking level.
|
||||||
*
|
*
|
||||||
* @param host - Host of target server.
|
* @param host - Host of target server.
|
||||||
* @returns Returns the amount of time in milliseconds it takes to execute the grow Netscript function. Returns Infinity if called on a Hacknet Server.
|
* @returns Returns the amount of time in milliseconds it takes to execute the grow Netscript function.
|
||||||
*/
|
*/
|
||||||
getGrowTime(host: string): number;
|
getGrowTime(host: string): number;
|
||||||
|
|
||||||
@ -6239,11 +6238,10 @@ export interface NS {
|
|||||||
* RAM cost: 0.05 GB
|
* RAM cost: 0.05 GB
|
||||||
*
|
*
|
||||||
* Returns the amount of time in milliseconds it takes to execute the weaken Netscript function on the target server.
|
* Returns the amount of time in milliseconds it takes to execute the weaken Netscript function on the target server.
|
||||||
* The function takes in an optional hackLvl parameter that can be specified to see what the weaken time would be at different hacking levels.
|
|
||||||
* The required time is increased by the security level of the target server and decreased by the player's hacking level.
|
* The required time is increased by the security level of the target server and decreased by the player's hacking level.
|
||||||
*
|
*
|
||||||
* @param host - Host of target server.
|
* @param host - Host of target server.
|
||||||
* @returns Returns the amount of time in milliseconds it takes to execute the weaken Netscript function. Returns Infinity if called on a Hacknet Server.
|
* @returns Returns the amount of time in milliseconds it takes to execute the weaken Netscript function.
|
||||||
*/
|
*/
|
||||||
getWeakenTime(host: string): number;
|
getWeakenTime(host: string): number;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user