Merge pull request #4040 from Mughur/dev

DOCS, UI: update docs a bit more, amending some BN and SF texts
This commit is contained in:
hydroflame 2022-08-29 11:20:10 -03:00 committed by GitHub
commit 69f6ca364f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 60 additions and 24 deletions

@ -19,7 +19,7 @@ Then, to fix your script, make sure you have a sleep or any other timed function
await ns.sleep(1000); // Add a 1s sleep to prevent freezing await ns.sleep(1000); // Add a 1s sleep to prevent freezing
} }
Also make sure that each while loop gets to `await`ed function or `break`, for example the next snippet has a sleep Also make sure that each while loop gets to `awaited` function or `break`, for example the next snippet has a sleep
function, but it nor any possible conditional breaks are never reached and therefore will crash the game:: function, but it nor any possible conditional breaks are never reached and therefore will crash the game::
while(true) { while(true) {
@ -34,7 +34,7 @@ function, but it nor any possible conditional breaks are never reached and there
} }
If `n00dles` current money is, for example, 75% of the maximum money, the script will not reach neither `grow` nor `break` and crashes the game. If `n00dles` current money is, for example, 75% of the maximum money, the script will not reach neither `grow` nor `break` and crashes the game.
Adding a sleep like in the first example, or changing the code so that `await`ed function or `break` is always reached, would prevent the crash. Adding a sleep like in the first example, or changing the code so that `awaited` function or `break` is always reached, would prevent the crash.
Common infinite loop when translating the server purchasing script in starting guide to :ref:`netscriptjs` is to have a Common infinite loop when translating the server purchasing script in starting guide to :ref:`netscriptjs` is to have a
while loop, that's condition's change is conditional:: while loop, that's condition's change is conditional::
@ -62,8 +62,8 @@ If the game window becomes a black screen without the game itself crashing, this
the game running too many concurrent scripts (the game runs on a browser and each tab can only the game running too many concurrent scripts (the game runs on a browser and each tab can only
use so much ram until it crashes). Depending on which scripts are running and your hardware, use so much ram until it crashes). Depending on which scripts are running and your hardware,
this number can vary between 50000 to 100000 instances (in version 2.0.2. In prior versions this number this number can vary between 50000 to 100000 instances (in version 2.0.2. In prior versions this number
was about 1/5th of that). To prevent this from happening make sure to multithread the scripts as much as was about 1/5th of that). To prevent this from happening make sure to :ref:`multithread<gameplay_scripts_multithreadingscripts>`
possible. the scripts as much as possible.
Bug Bug

@ -50,10 +50,12 @@ Description
* Certain Factions (Slum Snakes, Tetrads, The Syndicate, The Dark Army, Speakers for the Dead, * Certain Factions (Slum Snakes, Tetrads, The Syndicate, The Dark Army, Speakers for the Dead,
NiteSec, The Black Hand) give the player the ability to form and manage their own gangs. These gangs NiteSec, The Black Hand) give the player the ability to form and manage their own gangs. These gangs
will earn the player money and reputation with the corresponding Faction will earn the player money and reputation with the corresponding Faction
* Every Augmentation in the game will be available through the Factions listed above * Every Augmentation* in the game will be available through the Factions listed above
* For every Faction NOT listed above, reputation gains are halved * For every Faction NOT listed above, reputation gains are halved
* You will no longer gain passive reputation with Factions * You will no longer gain passive reputation with Factions
(* except Neuroflux Governor, The Red Pill and augments of secret factions)
Source-File Source-File
:Max Level: 3 :Max Level: 3
@ -84,7 +86,7 @@ Description
has the potential of generating massive profits. All other forms of income are reduced by 75%. Furthermore: has the potential of generating massive profits. All other forms of income are reduced by 75%. Furthermore:
* The price and reputation cost of all Augmentations is tripled * The price and reputation cost of all Augmentations is tripled
* The starting and maximum amount of money on servers is reduced by 75% * The starting and maximum amount of money on servers is reduced by 80%
* Server growth rate is reduced by 80% * Server growth rate is reduced by 80%
* You now only need 75 favour with a faction in order to donate to it, rather than 150 * You now only need 75 favour with a faction in order to donate to it, rather than 150
@ -92,7 +94,7 @@ Source-File
:Max Level: 3 :Max Level: 3
This Source-File lets you create corporations on other BitNodes (although This Source-File lets you create corporations on other BitNodes (although
some BitNodes will disable this mechanic). This Source-File also increases your some BitNodes will disable this mechanic) and level 3 permanently unlocks the full API. This Source-File also increases your
charisma and company salary multipliers by: charisma and company salary multipliers by:
* Level 1: 8% * Level 1: 8%
@ -122,7 +124,11 @@ Source-File
:Max Level: 3 :Max Level: 3
This Source-File lets you access and use the Singularity Functions in other BitNodes. This Source-File lets you access and use the Singularity Functions in other BitNodes.
Each level of this Source-File will reduce RAM costs. Each level of this Source-File will reduce RAM costs:
* Level 1: 16x
* Level 2: 4x
* Level 3: 1x
Difficulty: Difficulty:
Depending on what Source-Files you have unlocked before attempting this BitNode, Depending on what Source-Files you have unlocked before attempting this BitNode,
@ -139,11 +145,11 @@ Description
In this BitNode: In this BitNode:
* The base security level of servers is doubled * The base security level of servers is doubled
* The starting money on servers is halved, but the maximum money remains the same * The starting money on servers is halved, but the maximum money is doubled
* Most methods of earning money now give significantly less * Most methods of earning money now give significantly less
* Infiltration gives 50% more reputation and money * Infiltration gives 50% more reputation and money
* Corporations have 50% lower valuations and are therefore less profitable * Corporations have 50% lower valuations and are therefore less profitable
* Augmentations are more expensive * Augmentation price is doubled
* Hacking experience gain rates are reduced * Hacking experience gain rates are reduced
Source-File Source-File
@ -181,7 +187,7 @@ Description
* Hacking and Hacknet Nodes will be less profitable * Hacking and Hacknet Nodes will be less profitable
* Your hacking level is reduced by 65% * Your hacking level is reduced by 65%
* Hacking experience gain from scripts is reduced by 75% * Hacking experience gain is reduced by 75%
* Corporations have 80% lower valuations and are therefore less profitable * Corporations have 80% lower valuations and are therefore less profitable
* Working for companies is 50% less profitable * Working for companies is 50% less profitable
* Crimes and Infiltration are 25% less profitable * Crimes and Infiltration are 25% less profitable
@ -220,7 +226,7 @@ Description
* Augmentations are 3x more expensive * Augmentations are 3x more expensive
* Hacking and Hacknet Nodes will be significantly less profitable * Hacking and Hacknet Nodes will be significantly less profitable
* Your hacking level is reduced by 65% * Your hacking level is reduced by 65%
* Hacking experience gain from scripts is reduced by 75% * Hacking experience gain is reduced by 75%
* Corporations have 80% lower valuations and are therefore less profitable * Corporations have 80% lower valuations and are therefore less profitable
* Working for companies is 50% less profitable * Working for companies is 50% less profitable
* Crimes and Infiltration are 25% less profitable * Crimes and Infiltration are 25% less profitable
@ -300,6 +306,12 @@ Source-File
(Note that the Level 3 effect of this Source-File only applies when entering a new BitNode, NOT (Note that the Level 3 effect of this Source-File only applies when entering a new BitNode, NOT
when installing Augmentations.) when installing Augmentations.)
This Source-File also increases your hacknet multipliers by:
* Level 1: 8%
* Level 2: 12%
* Level 3: 14%
Difficulty Difficulty
Hard Hard
@ -312,11 +324,13 @@ Description
for the human consciousness. Mankind had finally achieved immortality - at least for those for the human consciousness. Mankind had finally achieved immortality - at least for those
that could afford it. that could afford it.
This BitNode unlocks Sleeve technology. Sleeve technology allows you to: This BitNode unlocks Sleeve and grafting technologies. Sleeve technology allows you to:
1. Re-sleeve: Purchase and transfer your consciousness into a new body 1. Re-sleeve: Purchase and transfer your consciousness into a new body
2. Duplicate Sleeves: Duplicate your consciousness into Synthoids, allowing you to perform different tasks synchronously 2. Duplicate Sleeves: Duplicate your consciousness into Synthoids, allowing you to perform different tasks synchronously
Grafting technology allows you to graft Augmentations, which is an alternative way of installing Augmentations.
In this BitNode: In this BitNode:
* Your stats are significantly decreased * Your stats are significantly decreased
@ -327,7 +341,7 @@ Description
Source-File Source-File
:Max Level: 3 :Max Level: 3
This Source-File unlocks Sleeve technology in other BitNodes. This Source-File unlocks Sleeve and grafting technologies in other BitNodes.
Each level of this Source-File also grants you a Duplicate Sleeve. Each level of this Source-File also grants you a Duplicate Sleeve.
Difficulty Difficulty
@ -346,8 +360,8 @@ Description
In this BitNode: In this BitNode:
* Your hacking stat and experience gain are halved * Your hacking stat and experience gain are reduced
* The starting and maximum amount of money available on servers is significantly decreased * The starting and maximum amount of money available on servers are reduced by 90%
* The growth rate of servers is significantly reduced * The growth rate of servers is significantly reduced
* Weakening a server is twice as effective * Weakening a server is twice as effective
* Company wages are decreased by 50% * Company wages are decreased by 50%
@ -368,6 +382,12 @@ Source-File
* Level 2: 48% * Level 2: 48%
* Level 3: 56% * Level 3: 56%
This Source-File reduces the price increase for every aug bought by:
* Level 1: 4%
* Level 2: 6%
* Level 3: 7%
Difficulty Difficulty
Hard Hard

@ -115,8 +115,8 @@ BitNodes["BitNode3"] = new BitNode(
<br /> <br />
Destroying this BitNode will give you Source-File 3, or if you already have this Source-File it will upgrade its Destroying this BitNode will give you Source-File 3, or if you already have this Source-File it will upgrade its
level up to a maximum of 3. This Source-File lets you create corporations on other BitNodes (although some level up to a maximum of 3. This Source-File lets you create corporations on other BitNodes (although some
BitNodes will disable this mechanic). This Source-File also increases your charisma and company salary multipliers BitNodes will disable this mechanic) and level 3 permanently unlocks the full API. This Source-File also increases
by: your charisma and company salary multipliers by:
<br /> <br />
Level 1: 8% Level 1: 8%
<br /> <br />
@ -144,7 +144,13 @@ BitNodes["BitNode4"] = new BitNode(
<br /> <br />
Destroying this BitNode will give you Source-File 4, or if you already have this Source-File it will upgrade its Destroying this BitNode will give you Source-File 4, or if you already have this Source-File it will upgrade its
level up to a maximum of 3. This Source-File lets you access and use the Singularity Functions in other BitNodes. level up to a maximum of 3. This Source-File lets you access and use the Singularity Functions in other BitNodes.
Each level of this Source-File reduces the RAM cost of singularity functions. Each level of this Source-File reduces the RAM cost of singularity functions:
<br />
Level 1: 16x
<br />
Level 2: 4x
<br />
Level 3: 1x
</> </>
), ),
); );
@ -339,7 +345,7 @@ BitNodes["BitNode10"] = new BitNode(
achieved immortality - at least for those that could afford it. achieved immortality - at least for those that could afford it.
<br /> <br />
<br /> <br />
This BitNode unlocks Sleeve technology. Sleeve technology allows you to: This BitNode unlocks Sleeve and grafting technologies. Sleeve technology allows you to:
<br /> <br />
<br /> <br />
1. Grafting: Visit VitaLife in New Tokyo to be able to obtain Augmentations without needing to install 1. Grafting: Visit VitaLife in New Tokyo to be able to obtain Augmentations without needing to install
@ -348,9 +354,12 @@ BitNodes["BitNode10"] = new BitNode(
synchronously. synchronously.
<br /> <br />
<br /> <br />
Grafting technology allows you to graft Augmentations, which is an alternative way of installing Augmentations.
<br />
<br />
Destroying this BitNode will give you Source-File 10, or if you already have this Source-File it will upgrade its Destroying this BitNode will give you Source-File 10, or if you already have this Source-File it will upgrade its
level up to a maximum of 3. This Source-File unlocks Sleeve technology in other BitNodes. Each level of this level up to a maximum of 3. This Source-File unlocks Sleeve technology, and the Grafting API in other BitNodes.
Source-File also grants you a Duplicate Sleeve Each level of this Source-File also grants you a Duplicate Sleeve
</> </>
), ),
); );

@ -41,7 +41,8 @@ SourceFiles["SourceFile3"] = new SourceFile(
( (
<> <>
This Source-File lets you create corporations on other BitNodes (although some BitNodes will disable this This Source-File lets you create corporations on other BitNodes (although some BitNodes will disable this
mechanic). This Source-File also increases your charisma and company salary multipliers by: mechanic) and level 3 permanently unlocks the full API. This Source-File also increases your charisma and company
salary multipliers by:
<br /> <br />
Level 1: 8% Level 1: 8%
<br /> <br />
@ -56,7 +57,13 @@ SourceFiles["SourceFile4"] = new SourceFile(
( (
<> <>
This Source-File lets you access and use the Singularity Functions in every BitNode. Every level of this This Source-File lets you access and use the Singularity Functions in every BitNode. Every level of this
Source-File reduces the RAM cost of Singularity functions. Source-File reduces the RAM cost of Singularity functions:
<br />
Level 1: 16x
<br />
Level 2: 4x
<br />
Level 3: 1x
</> </>
), ),
); );