mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
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:
@@ -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");
|
||||
|
||||
@@ -15,4 +15,4 @@ getDescription() Netscript Function
|
||||
|
||||
.. code-block:: javascript
|
||||
|
||||
codingcontract.getDescription("contract-123.cct", "home");
|
||||
codingcontract.getDescription("contract-123.cct", "home");
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user