mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +01:00
DOCUMENTATION: ns.share and getSharePower definition updates (#734)
This commit is contained in:
parent
cef452d35e
commit
7500ef0da2
@ -4,7 +4,7 @@
|
||||
|
||||
## NS.getSharePower() method
|
||||
|
||||
Calculate your share power. Based on all the active share calls.
|
||||
Share Power has a multiplicative effect on rep/second while doing work for a faction. Share Power increases incrementally for every thread of share running on your server network, but at a sharply decreasing rate.
|
||||
|
||||
**Signature:**
|
||||
|
||||
|
@ -26,7 +26,6 @@ export async function main(ns) {
|
||||
await ns.hack('n00dles');
|
||||
}
|
||||
```
|
||||
[ns2 in-game docs](https://bitburner-official.readthedocs.io/en/latest/netscript/netscriptjs.html) <hr> For (deprecated) .script usage, see: [ns1 in-game docs](https://bitburner-official.readthedocs.io/en/latest/netscript/netscript1.html) <hr>
|
||||
|
||||
## Properties
|
||||
|
||||
@ -108,7 +107,7 @@ export async function main(ns) {
|
||||
| [getServerRequiredHackingLevel(host)](./bitburner.ns.getserverrequiredhackinglevel.md) | Returns the required hacking level of the target server. |
|
||||
| [getServerSecurityLevel(host)](./bitburner.ns.getserversecuritylevel.md) | Get server security level. |
|
||||
| [getServerUsedRam(host)](./bitburner.ns.getserverusedram.md) | Get the used RAM on a server. |
|
||||
| [getSharePower()](./bitburner.ns.getsharepower.md) | Calculate your share power. Based on all the active share calls. |
|
||||
| [getSharePower()](./bitburner.ns.getsharepower.md) | Share Power has a multiplicative effect on rep/second while doing work for a faction. Share Power increases incrementally for every thread of share running on your server network, but at a sharply decreasing rate. |
|
||||
| [getTimeSinceLastAug()](./bitburner.ns.gettimesincelastaug.md) | Returns the amount of time in milliseconds that have passed since you last installed Augmentations. |
|
||||
| [getTotalScriptExpGain()](./bitburner.ns.gettotalscriptexpgain.md) | Get the exp gain of all scripts. |
|
||||
| [getTotalScriptIncome()](./bitburner.ns.gettotalscriptincome.md) | Get the income of all scripts. |
|
||||
|
@ -19,5 +19,5 @@ Promise<void>
|
||||
|
||||
RAM cost: 2.4 GB
|
||||
|
||||
Increases your rep gain of all faction work types while share is called. Scales with thread count.
|
||||
Increases rep/second for all faction work while share is running. Each cycle of ns.share() is 10 seconds. Scales with thread count, but at a sharply decreasing rate.
|
||||
|
||||
|
7
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
7
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -6678,13 +6678,14 @@ export interface NS {
|
||||
* @remarks
|
||||
* RAM cost: 2.4 GB
|
||||
*
|
||||
* Increases your rep gain of all faction work types while share is called.
|
||||
* Scales with thread count.
|
||||
* Increases rep/second for all faction work while share is running. Each cycle of ns.share() is 10 seconds.
|
||||
* Scales with thread count, but at a sharply decreasing rate.
|
||||
*/
|
||||
share(): Promise<void>;
|
||||
|
||||
/**
|
||||
* Calculate your share power. Based on all the active share calls.
|
||||
* Share Power has a multiplicative effect on rep/second while doing work for a faction.
|
||||
* Share Power increases incrementally for every thread of share running on your server network, but at a sharply decreasing rate.
|
||||
* @remarks
|
||||
* RAM cost: 0.2 GB
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user