BUGFIX: ns.corporation.bribe can bribe faction that player is not member of (#1966)

This commit is contained in:
catloversg
2025-02-16 16:05:22 +07:00
committed by GitHub
parent 26c5bb40e3
commit adc39ad825
4 changed files with 21 additions and 9 deletions

View File

@@ -9354,6 +9354,8 @@ export interface Corporation extends WarehouseAPI, OfficeAPI {
* {@link Corporation.getCorporation | getCorporation} and {@link Corporation.getConstants | getConstants} to get this
* information.
*
* - You must be a member of the specified 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.
*