mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 14:12:27 +01:00
API: Add "No AI" to GoOpponent type (#1845)
This commit is contained in:
parent
d75b0af6b2
commit
8aea99e5cd
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user