API: Add "No AI" to GoOpponent type (#1845)

This commit is contained in:
catloversg 2024-12-18 18:14:35 +07:00 committed by GitHub
parent d75b0af6b2
commit 8aea99e5cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

@ -9,9 +9,9 @@ Returns the name of the opponent faction in the current subnet.
**Signature:** **Signature:**
```typescript ```typescript
getOpponent(): GoOpponent | "No AI"; getOpponent(): GoOpponent;
``` ```
**Returns:** **Returns:**
[GoOpponent](./bitburner.goopponent.md) \| "No AI" [GoOpponent](./bitburner.goopponent.md)

@ -9,6 +9,7 @@
```typescript ```typescript
type GoOpponent = type GoOpponent =
| "No AI"
| "Netburners" | "Netburners"
| "Slum Snakes" | "Slum Snakes"
| "The Black Hand" | "The Black Hand"

@ -4289,6 +4289,7 @@ export interface Gang {
/** @public */ /** @public */
type GoOpponent = type GoOpponent =
| "No AI"
| "Netburners" | "Netburners"
| "Slum Snakes" | "Slum Snakes"
| "The Black Hand" | "The Black Hand"
@ -4685,7 +4686,7 @@ export interface Go {
/** /**
* Returns the name of the opponent faction in the current subnet. * Returns the name of the opponent faction in the current subnet.
*/ */
getOpponent(): GoOpponent | "No AI"; getOpponent(): GoOpponent;
/** /**
* Gets new IPvGO subnet with the specified size owned by the listed faction, ready for the player to make a move. * Gets new IPvGO subnet with the specified size owned by the listed faction, ready for the player to make a move.