NETSCRIPT: Add Singularity.getFactionEnemies() (#1192)

This commit is contained in:
Paco Delozanne
2024-03-29 00:16:54 -05:00
committed by GitHub
parent 6669c4da6a
commit ae1ca8f9a6
5 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [Singularity](./bitburner.singularity.md) &gt; [getFactionEnemies](./bitburner.singularity.getfactionenemies.md)
## Singularity.getFactionEnemies() method
Get a list of enemies of a faction.
**Signature:**
```typescript
getFactionEnemies(faction: string): string[];
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| faction | string | Name of faction. |
**Returns:**
string\[\]
Array containing the names of all enemies of the faction.
## Remarks
RAM cost: 3 GB \* 16/4/1
Returns an array containing the names (as strings) of all factions that are enemies of the specified faction.

View File

@@ -48,6 +48,7 @@ This API requires Source-File 4 to use. The RAM cost of all these functions is m
| [getCurrentWork()](./bitburner.singularity.getcurrentwork.md) | Get the current work the player is doing. |
| [getDarkwebProgramCost(programName)](./bitburner.singularity.getdarkwebprogramcost.md) | Check the price of an exploit on the dark web |
| [getDarkwebPrograms()](./bitburner.singularity.getdarkwebprograms.md) | Get a list of programs offered on the dark web. |
| [getFactionEnemies(faction)](./bitburner.singularity.getfactionenemies.md) | Get a list of enemies of a faction. |
| [getFactionFavor(faction)](./bitburner.singularity.getfactionfavor.md) | Get faction favor. |
| [getFactionFavorGain(faction)](./bitburner.singularity.getfactionfavorgain.md) | Get faction favor gain. |
| [getFactionInviteRequirements(faction)](./bitburner.singularity.getfactioninviterequirements.md) | List conditions for being invited to a faction. |