take into account max thread needed

This commit is contained in:
chris380
2022-04-12 17:42:49 +02:00
parent 2d74b493ee
commit fa29d2d9a8
3 changed files with 21 additions and 4 deletions

View File

@@ -4555,9 +4555,10 @@ export interface NS extends Singularity {
* Returns the security increase that would occur if a hack with this many threads happened.
*
* @param threads - Amount of threads that will be used.
* @param hostname - Hostname of the target server. The number of threads is limited to the number needed to hack the servers maximum amount of money.
* @returns The security increase.
*/
hackAnalyzeSecurity(threads: number): number;
hackAnalyzeSecurity(threads: number, hostname?: string): number;
/**
* Get the chance of successfully hacking a server.