Refactored how clothing is stored and processed

`Suits` is no longer used in full profile, `customisationUnlocks` should be used
This commit is contained in:
Chomp
2025-03-28 17:54:32 +00:00
parent 09d5776f32
commit 2423a66f40
6 changed files with 40 additions and 32 deletions
@@ -128,14 +128,10 @@ public class CustomizationController(
/// <returns>true if already purchased</returns>
protected bool OutfitAlreadyPurchased(object suitId, string sessionId)
{
var suits = _saveServer.GetProfile(sessionId).Suits;
var fullProfile = _profileHelper.GetFullProfile(sessionId);
if (suits is null || suits.Count == 0)
{
return false;
}
return suits.Contains(suitId);
// Check if clothing can be found by id
return fullProfile.CustomisationUnlocks.Exists(customisation => Equals(customisation.Id, suitId));
}
/// <summary>