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); const tieredFleaLimitTypes = Object.keys(tieredFlea.unlocksType);
for (const offer of this.ragfairOfferService.getOffers()) { for (const offer of this.ragfairOfferService.getOffers()) {
// Dont show pack offers
if (offer.sellInOnePiece) {
continue;
}
if (!this.passesSearchFilterCriteria(searchRequest, offer, pmcData)) { if (!this.passesSearchFilterCriteria(searchRequest, offer, pmcData)) {
continue; continue;
} }

View File

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