From 5217f7caed8ce3e4644c73766fbb059e8790f5bf Mon Sep 17 00:00:00 2001 From: DrakiaXYZ Date: Sat, 21 Sep 2024 08:56:04 +0000 Subject: [PATCH] Resolve issue where most bonuses are cleared on wall completion (!412) - Resolves issue where the player stash template ends up being reset to base, resulting in an incorrect stash size calculation Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com> Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/412 Co-authored-by: DrakiaXYZ Co-committed-by: DrakiaXYZ --- project/src/controllers/HideoutController.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/project/src/controllers/HideoutController.ts b/project/src/controllers/HideoutController.ts index a7cb90cd..4056b76a 100644 --- a/project/src/controllers/HideoutController.ts +++ b/project/src/controllers/HideoutController.ts @@ -231,11 +231,10 @@ export class HideoutController { } // Cleanup temporary fuel usage buffs from mopping floor if wall is complete as it would result in too many bonuses - // TODO: Clean up all buffs from mopping floor. if (profileHideoutArea.type === HideoutAreas.EMERGENCY_WALL && profileHideoutArea.level === 6) { // Get everything except specific fuel consumption buffs pmcData.Bonuses = pmcData.Bonuses.filter( - (bonus) => bonus.type !== BonusType.FUEL_CONSUMPTION && bonus.value >= -10 && bonus.value <= 0, + (bonus) => bonus.type !== BonusType.FUEL_CONSUMPTION || (bonus.value >= -10 && bonus.value <= 0), ); }