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
+1
View File
@@ -113,6 +113,7 @@ export function NetscriptGang(): InternalAPI<IGang> {
wantedLevel: gang.wanted,
wantedLevelGainRate: gang.wantedGainRate,
wantedPenalty: gang.getWantedPenalty(),
equipmentCostMult: 1 / gang.getDiscount(),
};
},
getOtherGangInformation: (ctx) => () => {