Added handling of SHOOTING_RANGE_MARK to AddHideoutCustomisationUnlock() Resolves #339

This commit is contained in:
Chomp
2025-06-02 09:43:03 +01:00
parent 360a59a585
commit c42449b150
@@ -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;