Renamed function to clarify what it does
This commit is contained in:
parent
2b3ee4f15c
commit
961210f73c
@ -680,7 +680,7 @@ export class RagfairController
|
|||||||
return { _tpl: item._tpl, count: item.count, onlyFunctional: item.onlyFunctional };
|
return { _tpl: item._tpl, count: item.count, onlyFunctional: item.onlyFunctional };
|
||||||
});
|
});
|
||||||
|
|
||||||
return this.ragfairOfferGenerator.createFleaOffer(
|
return this.ragfairOfferGenerator.createAndAddFleaOffer(
|
||||||
sessionId,
|
sessionId,
|
||||||
this.timeUtil.getTimestamp(),
|
this.timeUtil.getTimestamp(),
|
||||||
formattedItems,
|
formattedItems,
|
||||||
|
@ -73,9 +73,9 @@ export class RagfairOfferGenerator
|
|||||||
* @param barterScheme Cost of item (currency or barter)
|
* @param barterScheme Cost of item (currency or barter)
|
||||||
* @param loyalLevel Loyalty level needed to buy item
|
* @param loyalLevel Loyalty level needed to buy item
|
||||||
* @param sellInOnePiece Flags sellInOnePiece to be true
|
* @param sellInOnePiece Flags sellInOnePiece to be true
|
||||||
* @returns IRagfairOffer
|
* @returns Created flea offer
|
||||||
*/
|
*/
|
||||||
public createFleaOffer(
|
public createAndAddFleaOffer(
|
||||||
userID: string,
|
userID: string,
|
||||||
time: number,
|
time: number,
|
||||||
items: Item[],
|
items: Item[],
|
||||||
@ -515,7 +515,7 @@ export class RagfairOfferGenerator
|
|||||||
barterScheme = this.createCurrencyBarterScheme(itemWithChildren, isPackOffer);
|
barterScheme = this.createCurrencyBarterScheme(itemWithChildren, isPackOffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
const offer = this.createFleaOffer(
|
const offer = this.createAndAddFleaOffer(
|
||||||
randomUserId,
|
randomUserId,
|
||||||
this.timeUtil.getTimestamp(),
|
this.timeUtil.getTimestamp(),
|
||||||
itemWithChildren,
|
itemWithChildren,
|
||||||
@ -598,7 +598,7 @@ export class RagfairOfferGenerator
|
|||||||
const barterSchemeItems = assorts.barter_scheme[item._id][0];
|
const barterSchemeItems = assorts.barter_scheme[item._id][0];
|
||||||
const loyalLevel = assorts.loyal_level_items[item._id];
|
const loyalLevel = assorts.loyal_level_items[item._id];
|
||||||
|
|
||||||
const offer = this.createFleaOffer(traderID, time, items, barterSchemeItems, loyalLevel, false);
|
const offer = this.createAndAddFleaOffer(traderID, time, items, barterSchemeItems, loyalLevel, false);
|
||||||
|
|
||||||
// Refresh complete, reset flag to false
|
// Refresh complete, reset flag to false
|
||||||
trader.base.refreshTraderRagfairOffers = false;
|
trader.base.refreshTraderRagfairOffers = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user