From 0c8d829317b7239bb26fddc26e7fc675779e5f5c Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 15 Sep 2024 12:11:36 +0100 Subject: [PATCH] Reverted majority of changes from 3a3a7b1026818dcb8d16bd259506bbd308647ec8 as they didn't actually fix the issue and instead caused items to sell to traders for incorrect values --- project/src/controllers/TraderController.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/project/src/controllers/TraderController.ts b/project/src/controllers/TraderController.ts index 8f0bb9d0..5edeff48 100644 --- a/project/src/controllers/TraderController.ts +++ b/project/src/controllers/TraderController.ts @@ -168,16 +168,8 @@ export class TraderController { /** Handle client/items/prices/TRADERID */ public getItemPrices(sessionId: string, traderId: string): IGetItemPricesResponse { - const pmcData = this.profileHelper.getPmcProfile(sessionId); - const traderDetails = this.traderHelper.getLoyaltyLevel(traderId, pmcData); - const traderItemSellMultipler = 1 - traderDetails.buy_price_coef / 100; - - // Clone handbook prices so we can apply the coef multipler to every item const handbookPrices = this.ragfairPriceService.getAllStaticPrices(); const handbookPricesClone = this.cloner.clone(handbookPrices); - for (const handbookItemKey in handbookPricesClone) { - handbookPricesClone[handbookItemKey] = handbookPricesClone[handbookItemKey] * traderItemSellMultipler; - } return { supplyNextTime: this.traderHelper.getNextUpdateTimestamp(traderId),