From c42449b150c2eb974a4a37da58d0a1294658b05f Mon Sep 17 00:00:00 2001 From: Chomp Date: Mon, 2 Jun 2025 09:43:03 +0100 Subject: [PATCH] Added handling of `SHOOTING_RANGE_MARK` to `AddHideoutCustomisationUnlock()` Resolves #339 --- Libraries/SPTarkov.Server.Core/Helpers/ProfileHelper.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Libraries/SPTarkov.Server.Core/Helpers/ProfileHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/ProfileHelper.cs index a377e22c..bf1173d2 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/ProfileHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/ProfileHelper.cs @@ -683,7 +683,7 @@ public class ProfileHelper( if (fullProfile?.CustomisationUnlocks?.Any(u => u.Id == reward.Target) ?? false) { - _logger.Warning($"Profile: {fullProfile.ProfileInfo.ProfileId} already has hideout customisaiton reward: {reward.Target}, skipping"); + _logger.Warning($"Profile: {fullProfile.ProfileInfo.ProfileId} already has hideout customisation reward: {reward.Target}, skipping"); return; } @@ -722,6 +722,9 @@ public class ProfileHelper( case CustomisationTypeId.ENVIRONMENT_UI: rewardToStore.Type = CustomisationType.ENVIRONMENT; break; + case CustomisationTypeId.SHOOTING_RANGE_MARK: + rewardToStore.Type = CustomisationType.SHOOTING_RANGE_MARK; + break; default: _logger.Error($"Unhandled customisation unlock type: {matchingCustomisation.Parent} not added to profile"); return;