From 96e073c6043fe0ef4481816b505c57e8b4aa57a6 Mon Sep 17 00:00:00 2001 From: Chomp Date: Sat, 19 Jul 2025 22:02:38 +0100 Subject: [PATCH] Updated `SetCustomisation` to handle voice changes --- .../Controllers/CustomizationController.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Libraries/SPTarkov.Server.Core/Controllers/CustomizationController.cs b/Libraries/SPTarkov.Server.Core/Controllers/CustomizationController.cs index 54be2524..71bf1447 100644 --- a/Libraries/SPTarkov.Server.Core/Controllers/CustomizationController.cs +++ b/Libraries/SPTarkov.Server.Core/Controllers/CustomizationController.cs @@ -264,7 +264,7 @@ public class CustomizationController( /// Session/Player id /// /// Players PMC profile - /// + /// ItemEventRouterResponse public ItemEventRouterResponse SetCustomisation( MongoId sessionId, CustomizationSetRequest request, @@ -281,6 +281,9 @@ public class CustomizationController( case "suite": ApplyClothingItemToProfile(customisation, pmcData); break; + case "voice": + pmcData.Customization.Voice = customisation.Id; + break; default: logger.Error($"Unhandled customisation type: {customisation.Type}"); break;