mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 02:30:43 -05:00
Removed unused subfunction from getAssort
This commit is contained in:
parent
73186a2240
commit
b48c1153e1
@ -711,7 +711,7 @@ export class RagfairOfferHelper {
|
|||||||
* Should a ragfair offer be visible to the player
|
* Should a ragfair offer be visible to the player
|
||||||
* @param searchRequest Search request
|
* @param searchRequest Search request
|
||||||
* @param itemsToAdd ?
|
* @param itemsToAdd ?
|
||||||
* @param traderAssorts Trader assort items
|
* @param traderAssorts Trader assort items - used for filtering out locked trader items
|
||||||
* @param offer The flea offer
|
* @param offer The flea offer
|
||||||
* @param pmcProfile Player profile
|
* @param pmcProfile Player profile
|
||||||
* @returns True = should be shown to player
|
* @returns True = should be shown to player
|
||||||
|
@ -59,11 +59,6 @@ export class TraderAssortHelper {
|
|||||||
* @returns a traders' assorts
|
* @returns a traders' assorts
|
||||||
*/
|
*/
|
||||||
public getAssort(sessionId: string, traderId: string, flea = false): ITraderAssort {
|
public getAssort(sessionId: string, traderId: string, flea = false): ITraderAssort {
|
||||||
// Special case for getting ragfair items as they're dynamically generated
|
|
||||||
if (traderId === "ragfair") {
|
|
||||||
return this.getRagfairDataAsTraderAssort();
|
|
||||||
}
|
|
||||||
|
|
||||||
const traderClone = this.cloner.clone(this.databaseService.getTrader(traderId));
|
const traderClone = this.cloner.clone(this.databaseService.getTrader(traderId));
|
||||||
const fullProfile = this.profileHelper.getFullProfile(sessionId);
|
const fullProfile = this.profileHelper.getFullProfile(sessionId);
|
||||||
const pmcProfile = fullProfile.characters.pmc;
|
const pmcProfile = fullProfile.characters.pmc;
|
||||||
@ -249,17 +244,4 @@ export class TraderAssortHelper {
|
|||||||
protected getPristineTraderAssorts(traderId: string): IItem[] {
|
protected getPristineTraderAssorts(traderId: string): IItem[] {
|
||||||
return this.cloner.clone(this.traderAssortService.getPristineTraderAssort(traderId).items);
|
return this.cloner.clone(this.traderAssortService.getPristineTraderAssort(traderId).items);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns generated ragfair offers in a trader assort format
|
|
||||||
* @returns Trader assort object
|
|
||||||
*/
|
|
||||||
protected getRagfairDataAsTraderAssort(): ITraderAssort {
|
|
||||||
return {
|
|
||||||
items: this.ragfairAssortGenerator.getAssortItems().flat(),
|
|
||||||
barter_scheme: {},
|
|
||||||
loyal_level_items: {},
|
|
||||||
nextResupply: undefined,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user