mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
SINGULARITY: Add ns.singularity.getFactionWorkTypes (#1425)
This commit is contained in:
12
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
12
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -2149,6 +2149,18 @@ export interface Singularity {
|
||||
*/
|
||||
workForFaction(faction: string, workType: FactionWorkType | `${FactionWorkType}`, focus?: boolean): boolean;
|
||||
|
||||
/**
|
||||
* Get the work types of a faction.
|
||||
* @remarks
|
||||
* RAM cost: 1 GB * 16/4/1
|
||||
*
|
||||
* This function returns an array containing the work types of the specified faction.
|
||||
*
|
||||
* @param faction - Name of the faction.
|
||||
* @returns The work types of the faction.
|
||||
*/
|
||||
getFactionWorkTypes(faction: string): FactionWorkType[];
|
||||
|
||||
/**
|
||||
* Get faction reputation.
|
||||
* @remarks
|
||||
|
||||
Reference in New Issue
Block a user