From 8428264f05921fc787c708d5618fbc89192c0afd Mon Sep 17 00:00:00 2001 From: pan-kuleczka <80748387+pan-kuleczka@users.noreply.github.com> Date: Sun, 2 Jan 2022 01:09:44 +0100 Subject: [PATCH] Fixed ambiguous NS.hackAnalyze() description --- markdown/bitburner.ns.hackanalyze.md | 8 ++++---- markdown/bitburner.ns.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/markdown/bitburner.ns.hackanalyze.md b/markdown/bitburner.ns.hackanalyze.md index 5aa470dcb..c1adbc8f2 100644 --- a/markdown/bitburner.ns.hackanalyze.md +++ b/markdown/bitburner.ns.hackanalyze.md @@ -4,7 +4,7 @@ ## NS.hackAnalyze() method -Get the percent of money stolen with a single thread. +Get the part of money stolen with a single thread. Signature: @@ -22,13 +22,13 @@ hackAnalyze(host: string): number; number -The percentage of money you will steal from the target server with a single hack. +The part of money you will steal from the target server with a single thread hack. ## Remarks RAM cost: 1 GB -Returns the percentage of the specified server’s money you will steal with a single hack. This value is returned in percentage form, not decimal (Netscript functions typically return in decimal form, but not this one). +Returns the part of the specified server’s money you will steal with a single thread hack. ## Example @@ -36,6 +36,6 @@ Returns the percentage of the specified server’s money you will steal with a s ```ts //For example, assume the following returns 0.01: 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. ``` diff --git a/markdown/bitburner.ns.md b/markdown/bitburner.ns.md index 41ab69aa4..88fb50336 100644 --- a/markdown/bitburner.ns.md +++ b/markdown/bitburner.ns.md @@ -111,7 +111,7 @@ export async function main(ns) { | [growthAnalyze(host, growthAmount, cores)](./bitburner.ns.growthanalyze.md) | Calculate the number of grow thread needed to grow a server by a certain multiplier. | | [growthAnalyzeSecurity(threads)](./bitburner.ns.growthanalyzesecurity.md) | Calculate the security increase for a number of thread. | | [hack(host, opts)](./bitburner.ns.hack.md) | Steal a servers money. | -| [hackAnalyze(host)](./bitburner.ns.hackanalyze.md) | Get the percent of money stolen with a single thread. | +| [hackAnalyze(host)](./bitburner.ns.hackanalyze.md) | Get the part of money stolen with a single thread. | | [hackAnalyzeChance(host)](./bitburner.ns.hackanalyzechance.md) | Get the chance of successfully hacking a server. | | [hackAnalyzeSecurity(threads)](./bitburner.ns.hackanalyzesecurity.md) | Get the security increase for a number of thread. | | [hackAnalyzeThreads(host, hackAmount)](./bitburner.ns.hackanalyzethreads.md) | Predict the effect of hack. |