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

@@ -2077,6 +2077,20 @@ export interface Singularity {
*/
getFactionInviteRequirements(faction: string): PlayerRequirement[];
/**
* Get a list of enemies of a 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.
*
* @param faction - Name of faction.
* @returns Array containing the names of all enemies of the faction.
*/
getFactionEnemies(faction: string): string[];
/**
* List all current faction invitations.
* @remarks