From ce3b63dc1c9970eff4a5cb36f2dc83a8e31caf3a Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 9 Oct 2024 14:34:10 +0100 Subject: [PATCH] Updated `getOffersForBuild()` to not show pack offers, this fixes the equipment system buying pack offers --- project/src/helpers/RagfairOfferHelper.ts | 5 +++++ project/src/models/eft/ragfair/IRagfairOffer.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/project/src/helpers/RagfairOfferHelper.ts b/project/src/helpers/RagfairOfferHelper.ts index be501a59..6ad3e840 100644 --- a/project/src/helpers/RagfairOfferHelper.ts +++ b/project/src/helpers/RagfairOfferHelper.ts @@ -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; } diff --git a/project/src/models/eft/ragfair/IRagfairOffer.ts b/project/src/models/eft/ragfair/IRagfairOffer.ts index 3666c697..0d4d094e 100644 --- a/project/src/models/eft/ragfair/IRagfairOffer.ts +++ b/project/src/models/eft/ragfair/IRagfairOffer.ts @@ -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;