From 304b7645b0bb8506dc5ea9df824de16c97eb7860 Mon Sep 17 00:00:00 2001 From: Duck McSouls Date: Mon, 10 Oct 2022 12:47:20 +1100 Subject: [PATCH] DOC: `ns.sleeve.setToCommitCrime()`: starting index of sleeves Document the index of the first sleeve. Sleeves are indexed starting from zero, i.e. 0. Increment by 1 to get the index of the next sleeve. And so on. --- src/ScriptEditor/NetscriptDefinitions.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 5a2a9a8e6..10dfd5fbe 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -3618,7 +3618,7 @@ export interface Sleeve { * * Returns false if an invalid action is specified. * - * @param sleeveNumber - Index of the sleeve to start committing crime. + * @param sleeveNumber - Index of the sleeve to start committing crime. Sleeves are numbered starting from 0. * @param name - Name of the crime. Must be an exact match. * @returns True if this action was set successfully, false otherwise. */