mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
API: Add "No AI" to GoOpponent type (#1845)
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
3
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
3
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user