Update netscript documentation.

Unfortunately, I haven't used most of the specialty APIs yet, so I'm not intimately familiar with where their documentation might be wrong. I figured some fixes were better than no fixes, and I can always make more fixes later.

Fixes #1023.
This commit is contained in:
MageKing17
2021-07-02 14:27:59 -07:00
committed by danielyxie
parent 55d1ebd0e4
commit ae15914efa
73 changed files with 322 additions and 267 deletions

View File

@@ -11,8 +11,8 @@ getData() Netscript Function
contract type.
Get the data associated with the specific Coding Contract. Note that this is
not the same as the contract's description. This is just the data that
the contract wants you to act on in order to solve
not the same as the contract's description; this is just the data that
the contract wants you to act on in order to solve.
Example:
@@ -20,4 +20,4 @@ getData() Netscript Function
data = codingcontract.getData("contract-123.cct", "home");
answer = solve(data);
codingcontract.attempt(answer, "contract-123.cct", "home");
codingcontract.attempt(answer, "contract-123.cct", "home");

View File

@@ -15,4 +15,4 @@ getDescription() Netscript Function
.. code-block:: javascript
codingcontract.getDescription("contract-123.cct", "home");
codingcontract.getDescription("contract-123.cct", "home");

View File

@@ -16,4 +16,4 @@ getNumTriesRemaining() Netscript Function
.. code-block:: javascript
codingcontract.getNumTriesRemaining("contract-123.cct", "home"); // returns: 5
codingcontract.getNumTriesRemaining("contract-123.cct", "home"); // returns: 5