use function that only gets static price for daily rewards instead of function that falls back to flea price - improve price consistency

This commit is contained in:
Dev 2023-10-15 10:39:35 +01:00
parent 18c68fa353
commit fdd328b07a

View File

@ -800,13 +800,13 @@ export class RepeatableQuestGenerator
// TODO: maybe also non-default use ragfair to calculate the price // TODO: maybe also non-default use ragfair to calculate the price
// this.ragfairServer.getWeaponPresetPrice(item, items, existingPrice) // this.ragfairServer.getWeaponPresetPrice(item, items, existingPrice)
roublesBudget -= value * this.itemHelper.getItemPrice(itemSelected[0]); roublesBudget -= value * this.itemHelper.getStaticItemPrice(itemSelected[0]);
index += 1; index += 1;
// if we still have budget narrow down the items // if we still have budget narrow down the items
if (roublesBudget > 0) if (roublesBudget > 0)
{ {
itemSelection = itemSelection.filter(x => this.itemHelper.getItemPrice(x[0]) < roublesBudget); itemSelection = itemSelection.filter(x => this.itemHelper.getStaticItemPrice(x[0]) < roublesBudget);
if (itemSelection.length === 0) if (itemSelection.length === 0)
{ {
break; break;