API: Expose gang's discount rate (#2272)

This commit is contained in:
catloversg
2025-08-01 23:32:51 +07:00
committed by GitHub
parent d4cb50fbf1
commit 970368d11d
7 changed files with 24 additions and 1 deletions

View File

@@ -866,6 +866,8 @@ interface GangGenInfo {
territoryWarfareEngaged: boolean;
/** Number indicating the current wanted penalty */
wantedPenalty: number;
/** Gang gives a discount on all equipment. This multiplier is applied to the equipment cost. */
equipmentCostMult: number;
}
/** @public */
@@ -4329,6 +4331,8 @@ export interface Gang {
* Get the amount of money it takes to purchase a piece of Equipment or an Augmentation.
* If an invalid Equipment/Augmentation is specified, this function will return Infinity.
*
* This function already takes equipmentCostMult from {@link GangGenInfo | GangGenInfo} into account.
*
* @param equipName - Name of equipment.
* @returns Cost to purchase the specified Equipment/Augmentation (number). Infinity for invalid arguments
*/