merge dev and added purchased server softcap

This commit is contained in:
Olivier Gagnon
2021-10-16 22:39:56 -04:00
16 changed files with 148 additions and 124 deletions

View File

@@ -1,13 +1,13 @@
autocomplete() Netscript Function
============================
.. warning:: This feature is not officially supported yet and the API might change.
.. warning:: This feature is not officially supported yet and the API might change. It is also only supported in ns2
.. js:function:: autocomplete(data, args)
:RAM cost: 0 GB
:param Object data: general data about the game you might want to autocomplete.
:param string[] args: current arguments.
:param string[] args: current arguments. Minus `run script.ns`
data is an object with the following properties::
@@ -15,7 +15,10 @@ autocomplete() Netscript Function
servers: list of all servers in the game.
txts: list of all text files on the current server.
scripts: list of all scripts on the current server.
flags: the same flags function as passed with ns. Calling this function adds all the flags as autocomplete arguments
}
This function is special as it must be declared as a top level function like `main`.
Example:

View File

@@ -7,7 +7,7 @@ toast() Netscript Function
:param string message: message to display
:param success|info|warning|error variant: color of the toast
Spawns a toast (those bottom left notifications).
Spawns a toast (those bottom right notifications).
Example: