From dd3975ab1da34e88cb914c729f46f83493a57c4d Mon Sep 17 00:00:00 2001 From: Michael Ficocelli Date: Thu, 11 Apr 2024 17:28:06 -0400 Subject: [PATCH] IPVGO: Fix formatting to avoid breaking external editors (#1215) --- markdown/bitburner.go.opponentnextturn.md | 4 ++-- markdown/bitburner.goopponent.md | 9 ++++++++- src/ScriptEditor/NetscriptDefinitions.d.ts | 4 ++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/markdown/bitburner.go.opponentnextturn.md b/markdown/bitburner.go.opponentnextturn.md index d3b1b2630..9b9128337 100644 --- a/markdown/bitburner.go.opponentnextturn.md +++ b/markdown/bitburner.go.opponentnextturn.md @@ -9,7 +9,7 @@ Returns a promise that resolves with the success or failure state of your last m **Signature:** ```typescript -opponentNextTurn(logOpponentMove: boolean = true): Promise<{ +opponentNextTurn(logOpponentMove?: boolean): Promise<{ type: "move" | "pass" | "gameOver"; x: number | null; y: number | null; @@ -20,7 +20,7 @@ opponentNextTurn(logOpponentMove: boolean = true): Promise<{ | Parameter | Type | Description | | --- | --- | --- | -| logOpponentMove | boolean | _(Optional)_ optional, if false prevents logging opponent move | +| logOpponentMove | boolean | _(Optional)_ optional, defaults to true. if false prevents logging opponent move | **Returns:** diff --git a/markdown/bitburner.goopponent.md b/markdown/bitburner.goopponent.md index 6a63f3f1f..656b9684e 100644 --- a/markdown/bitburner.goopponent.md +++ b/markdown/bitburner.goopponent.md @@ -8,5 +8,12 @@ **Signature:** ```typescript -type GoOpponent = "Netburners" | "Slum Snakes" | "The Black Hand" | "Tetrads" | "Daedalus" | "Illuminati" | "????????????"; +type GoOpponent = + | "Netburners" + | "Slum Snakes" + | "The Black Hand" + | "Tetrads" + | "Daedalus" + | "Illuminati" + | "????????????"; ``` diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index ef3945ad9..e00155f11 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -3995,14 +3995,14 @@ export interface Go { * Returns a promise that resolves with the success or failure state of your last move, and the AI's response, if applicable. * x:0 y:0 represents the bottom-left corner of the board in the UI. * - * @param logOpponentMove - optional, if false prevents logging opponent move + * @param logOpponentMove - optional, defaults to true. if false prevents logging opponent move * * @remarks * RAM cost: 0 GB * * @returns a promise that contains if your last move was valid and successful, the opponent move's x and y coordinates (or pass) in response, or an indication if the game has ended */ - opponentNextTurn(logOpponentMove: boolean = true): Promise<{ + opponentNextTurn(logOpponentMove?: boolean): Promise<{ type: "move" | "pass" | "gameOver"; x: number | null; y: number | null;