Added handling of SHOOTING_RANGE_MARK to AddHideoutCustomisationUnlock() Resolves #339
This commit is contained in:
@@ -683,7 +683,7 @@ public class ProfileHelper(
|
|||||||
|
|
||||||
if (fullProfile?.CustomisationUnlocks?.Any(u => u.Id == reward.Target) ?? false)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -722,6 +722,9 @@ public class ProfileHelper(
|
|||||||
case CustomisationTypeId.ENVIRONMENT_UI:
|
case CustomisationTypeId.ENVIRONMENT_UI:
|
||||||
rewardToStore.Type = CustomisationType.ENVIRONMENT;
|
rewardToStore.Type = CustomisationType.ENVIRONMENT;
|
||||||
break;
|
break;
|
||||||
|
case CustomisationTypeId.SHOOTING_RANGE_MARK:
|
||||||
|
rewardToStore.Type = CustomisationType.SHOOTING_RANGE_MARK;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
_logger.Error($"Unhandled customisation unlock type: {matchingCustomisation.Parent} not added to profile");
|
_logger.Error($"Unhandled customisation unlock type: {matchingCustomisation.Parent} not added to profile");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user