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:**
|
||||
|
||||
```typescript
|
||||
getOpponent(): GoOpponent | "No AI";
|
||||
getOpponent(): GoOpponent;
|
||||
```
|
||||
**Returns:**
|
||||
|
||||
[GoOpponent](./bitburner.goopponent.md) \| "No AI"
|
||||
[GoOpponent](./bitburner.goopponent.md)
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
|
||||
```typescript
|
||||
type GoOpponent =
|
||||
| "No AI"
|
||||
| "Netburners"
|
||||
| "Slum Snakes"
|
||||
| "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 */
|
||||
type GoOpponent =
|
||||
| "No AI"
|
||||
| "Netburners"
|
||||
| "Slum Snakes"
|
||||
| "The Black Hand"
|
||||
@ -4685,7 +4686,7 @@ export interface Go {
|
||||
/**
|
||||
* 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.
|
||||
|
Loading…
Reference in New Issue
Block a user