mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
hackAnalyze definition fix to match markdown
This commit is contained in:
parent
8428264f05
commit
62c19c9078
13
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
13
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -4079,31 +4079,28 @@ export interface NS extends Singularity {
|
|||||||
hackAnalyzeThreads(host: string, hackAmount: number): number;
|
hackAnalyzeThreads(host: string, hackAmount: number): number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the percent of money stolen with a single thread.
|
* Get the part of money stolen with a single thread.
|
||||||
* @remarks
|
* @remarks
|
||||||
* RAM cost: 1 GB
|
* RAM cost: 1 GB
|
||||||
*
|
*
|
||||||
* Returns the percentage of the specified server’s money you will steal with a single hack.
|
* Returns the part of the specified server’s money you will steal with a single thread hack.
|
||||||
* This value is returned in percentage form, not decimal
|
|
||||||
* (Netscript functions typically return in decimal form, but not this one).
|
|
||||||
* This percentage is influenced by the player's hacking skill.
|
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* ```ts
|
* ```ts
|
||||||
* // NS1:
|
* // NS1:
|
||||||
* //For example, assume the following returns 0.01:
|
* //For example, assume the following returns 0.01:
|
||||||
* var hackAmount = hackAnalyze("foodnstuff");
|
* var hackAmount = hackAnalyze("foodnstuff");
|
||||||
* //This means that if hack the foodnstuff server, then you will steal 1% of its total money. If you hack using N threads, then you will steal N*0.01 times its total money.
|
* //This means that if hack the foodnstuff server using a single thread, then you will steal 1%, or 0.01 of its total money. If you hack using N threads, then you will steal N*0.01 times its total money.
|
||||||
* ```
|
* ```
|
||||||
* @example
|
* @example
|
||||||
* ```ts
|
* ```ts
|
||||||
* // NS2:
|
* // NS2:
|
||||||
* //For example, assume the following returns 0.01:
|
* //For example, assume the following returns 0.01:
|
||||||
* const hackAmount = ns.hackAnalyze("foodnstuff");
|
* const hackAmount = ns.hackAnalyze("foodnstuff");
|
||||||
* //This means that if hack the foodnstuff server, then you will steal 1% of its total money. If you hack using N threads, then you will steal N*0.01 times its total money.
|
* //This means that if hack the foodnstuff server using a single thread, then you will steal 1%, or 0.01 of its total money. If you hack using N threads, then you will steal N*0.01 times its total money.
|
||||||
* ```
|
* ```
|
||||||
* @param host - Hostname of the target server.
|
* @param host - Hostname of the target server.
|
||||||
* @returns The percentage of money you will steal from the target server with a single hack.
|
* @returns The part of money you will steal from the target server with a single thread hack.
|
||||||
*/
|
*/
|
||||||
hackAnalyze(host: string): number;
|
hackAnalyze(host: string): number;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user