From 58ee2c66d31978d63337785dabf4e1e663b4bba7 Mon Sep 17 00:00:00 2001 From: IsaacSin Date: Thu, 13 Jun 2024 13:28:37 +0000 Subject: [PATCH] Fix GP coin ragfair offers being excluded by "Exclude bartering offers" filter. (!363) BSG now considers GP coin to be a currency. Commit https://dev.sp-tarkov.com/SPT/Server/commit/4788f6b407045cfe7159d15927d6d62cc338d5dc#diff-d1c96eaf446b0afaf70c62191c7a688471fca50c already added GP coin to the `Money` enum, but it needs to be added to `PaymentHelper.isMoneyTpl()` to prevent it from being filtered by the barter filter as with other money offers. See attached screenshots for a demonstration of SPT vs live behavior. Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/363 Co-authored-by: IsaacSin Co-committed-by: IsaacSin --- project/src/helpers/PaymentHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/helpers/PaymentHelper.ts b/project/src/helpers/PaymentHelper.ts index 2687d4f8..ca845fd7 100644 --- a/project/src/helpers/PaymentHelper.ts +++ b/project/src/helpers/PaymentHelper.ts @@ -21,7 +21,7 @@ export class PaymentHelper */ public isMoneyTpl(tpl: string): boolean { - return [Money.DOLLARS, Money.EUROS, Money.ROUBLES, ...this.inventoryConfig.customMoneyTpls].some( + return [Money.DOLLARS, Money.EUROS, Money.ROUBLES, Money.GP, ...this.inventoryConfig.customMoneyTpls].some( (element) => element === tpl, ); }