CORPORATION: Clarify ns.corporation.bribe() (#1766)

This commit is contained in:
catloversg
2024-11-11 13:53:27 +07:00
committed by GitHub
parent c638d858c6
commit 40651a757d
6 changed files with 45 additions and 18 deletions

View File

@@ -8911,7 +8911,14 @@ export interface Corporation extends WarehouseAPI, OfficeAPI {
goPublic(numShares: number): boolean;
/**
* Bribe a faction. The specified faction must offer at least 1 type of work. You can use {@link Singularity.getFactionWorkTypes | getFactionWorkTypes} to get the list of work types of a faction.
* Bribe a faction. You must satisfy these conditions:
*
* - The corporation valuation must be greater than or equal to a threshold. You can use
* {@link Corporation.getCorporation | getCorporation} and {@link Corporation.getConstants | getConstants} to get this
* information.
*
* - The specified faction must offer at least 1 type of work. You can use
* {@link Singularity.getFactionWorkTypes | getFactionWorkTypes} to get the list of work types of a faction.
*
* @remarks
* RAM cost: 20 GB