Updated getOffersForBuild()
to not show pack offers, this fixes the equipment system buying pack offers
This commit is contained in:
parent
eb2afa81d5
commit
ce3b63dc1c
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user