Updated getOffersForBuild() to not show pack offers, this fixes the equipment system buying pack offers

This commit is contained in:
Dev 2024-10-09 14:34:10 +01:00
parent eb2afa81d5
commit ce3b63dc1c
2 changed files with 6 additions and 0 deletions

View File

@ -204,6 +204,11 @@ export class RagfairOfferHelper {
const tieredFleaLimitTypes = Object.keys(tieredFlea.unlocksType);
for (const offer of this.ragfairOfferService.getOffers()) {
// Dont show pack offers
if (offer.sellInOnePiece) {
continue;
}
if (!this.passesSearchFilterCriteria(searchRequest, offer, pmcData)) {
continue;
}

View File

@ -15,6 +15,7 @@ export interface IRagfairOffer {
requirementsCost: number;
startTime: number;
endTime: number;
/** True when offer is sold as pack */
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;