From a29533aa9f11bba098b0a8df8bb7089998c51278 Mon Sep 17 00:00:00 2001 From: Chomp Date: Sun, 29 Dec 2024 20:47:59 +0000 Subject: [PATCH] Added handling of prestige level dogtags --- .../controllers/CustomizationController.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/project/src/controllers/CustomizationController.ts b/project/src/controllers/CustomizationController.ts index 2293086b..e8991297 100644 --- a/project/src/controllers/CustomizationController.ts +++ b/project/src/controllers/CustomizationController.ts @@ -303,6 +303,25 @@ export class CustomizationController { break; } + const pretigeLevel = profile?.characters?.pmc?.Info?.PrestigeLevel; + if (pretigeLevel) { + if (pretigeLevel >= 1) { + customisationResultsClone.push({ + id: "674dbf593bee1152d407f005", + source: "default", + type: "dogTag", + }); + } + + if (pretigeLevel >= 2) { + customisationResultsClone.push({ + id: "675dcfea7ae1a8792107ca99", + source: "default", + type: "dogTag", + }); + } + } + return customisationResultsClone; }