DOCUMENTATION: Remove wrong information in ns.weaken (#1574)

* DOCUMENTATION: Remove wrong information in ns.weaken

* Update based on the feedback
This commit is contained in:
catloversg
2024-08-15 12:07:42 +07:00
committed by GitHub
parent e3dc867e08
commit 1d9e026b6e
3 changed files with 10 additions and 4 deletions

View File

@@ -5547,7 +5547,8 @@ export interface NS {
* server to hack that server. For example, you can create a script that hacks the `foodnstuff`
* server and run that script on any server in the game.
*
* A successful `hack()` on a server will raise that servers security level by 0.002.
* A successful `hack()` on a server will raise that servers security level by 0.002 per thread. You can use
* {@link NS.hackAnalyzeSecurity | hackAnalyzeSecurity} to calculate the security increase for a number of threads.
*
* @example
* ```js
@@ -5612,7 +5613,10 @@ export interface NS {
*
* Use your hacking skills to attack a servers security, lowering the servers security level.
* The runtime for this function depends on your hacking level and the target servers security
* level when this function is called. This function lowers the security level of the target server by 0.05.
* level when this function is called.
*
* This function usually lowers the security level of the target server by 0.05 per thread, and only in unusual
* situations does it do less. Use {@link NS.weakenAnalyze | weakenAnalyze} to determine the exact value.
*
* Like {@link NS.hack | hack} and {@link NS.grow| grow}, `weaken` can be called on any server, regardless of
* where the script is running. This function requires root access to the target server, but