mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 14:28:36 +02:00
API: Expose gang's discount rate (#2272)
This commit is contained in:
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user