From fdd328b07a98fdf1766017e7ab892b51a05f560e Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 15 Oct 2023 10:39:35 +0100 Subject: [PATCH] use function that only gets static price for daily rewards instead of function that falls back to flea price - improve price consistency --- project/src/generators/RepeatableQuestGenerator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/generators/RepeatableQuestGenerator.ts b/project/src/generators/RepeatableQuestGenerator.ts index b16a4bf7..7d144047 100644 --- a/project/src/generators/RepeatableQuestGenerator.ts +++ b/project/src/generators/RepeatableQuestGenerator.ts @@ -800,13 +800,13 @@ export class RepeatableQuestGenerator // TODO: maybe also non-default use ragfair to calculate the price // this.ragfairServer.getWeaponPresetPrice(item, items, existingPrice) - roublesBudget -= value * this.itemHelper.getItemPrice(itemSelected[0]); + roublesBudget -= value * this.itemHelper.getStaticItemPrice(itemSelected[0]); index += 1; // if we still have budget narrow down the items 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) { break;