From 01d07ed903a254f4c013c90c152693692cf891f5 Mon Sep 17 00:00:00 2001 From: KaenoDev Date: Mon, 13 Jan 2025 17:56:00 +0000 Subject: [PATCH] Update buyclothing --- Core/Controllers/CustomizationController.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Core/Controllers/CustomizationController.cs b/Core/Controllers/CustomizationController.cs index d10496f3..cc95fa14 100644 --- a/Core/Controllers/CustomizationController.cs +++ b/Core/Controllers/CustomizationController.cs @@ -99,8 +99,27 @@ public class CustomizationController ItemId = suitDetails?.Id, ItemName = suitDetails?.Name, })); + + return output; + } + + PayForClothingItems(sessionId, pmcData, buyClothingRequest.Items, output); + + var profile = _saveServer.GetProfile(sessionId); + + profile.Suits.Add(suitId); + + //TODO: Merge with function _profileHelper.addHideoutCustomisationUnlock + var rewardToStore = new CustomisationStorage() + { + Id = suitId, + Source = CustomisationSource.UNLOCKED_IN_GAME, + Type = CustomisationType.SUITE + }; + profile.CustomisationUnlocks.Add(rewardToStore); + return output; }