Skip to content

Commit

Permalink
IPVGO: Fix formatting to avoid breaking external editors (bitburner-o…
Browse files Browse the repository at this point in the history
  • Loading branch information
ficocelliguy authored and antoinedube committed May 5, 2024
1 parent 97f885c commit 668b76b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions markdown/bitburner.go.opponentnextturn.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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:**

Expand Down
9 changes: 8 additions & 1 deletion markdown/bitburner.goopponent.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
| "????????????";
```
4 changes: 2 additions & 2 deletions src/ScriptEditor/NetscriptDefinitions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 668b76b

Please sign in to comment.