From bf71cc18526b8834ddb863a37abd51eb6acc26a7 Mon Sep 17 00:00:00 2001 From: Chomp Date: Tue, 8 Jul 2025 16:00:36 +0100 Subject: [PATCH] Send notification to player when they're rewarded a hideout customisation --- .../SPTarkov.Server.Core/Helpers/RewardHelper.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Libraries/SPTarkov.Server.Core/Helpers/RewardHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/RewardHelper.cs index 5e8c3060..df9c19cb 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/RewardHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/RewardHelper.cs @@ -6,6 +6,7 @@ using SPTarkov.Server.Core.Models.Eft.Common.Tables; using SPTarkov.Server.Core.Models.Eft.Hideout; using SPTarkov.Server.Core.Models.Eft.ItemEvent; using SPTarkov.Server.Core.Models.Eft.Profile; +using SPTarkov.Server.Core.Models.Eft.Ws; using SPTarkov.Server.Core.Models.Enums; using SPTarkov.Server.Core.Models.Utils; using SPTarkov.Server.Core.Services; @@ -24,6 +25,7 @@ public class RewardHelper( ServerLocalisationService serverLocalisationService, TraderHelper traderHelper, PresetHelper presetHelper, + NotificationSendHelper notificationSendHelper, ICloner cloner ) { @@ -121,6 +123,15 @@ public class RewardHelper( break; case RewardType.CustomizationDirect: profileHelper.AddHideoutCustomisationUnlock(fullProfile, reward, source); + notificationSendHelper.SendMessage( + sessionId.Value, + new WsNotificationEvent + { + EventIdentifier = new MongoId(), + EventType = NotificationEventType.CustomizationUpdateRequired, + } + ); + break; case RewardType.NotificationPopup: // TODO: Wire up to notification system