From a09e8bf3fa5c8df7b925f9074960585744ba8dac Mon Sep 17 00:00:00 2001 From: Chomp Date: Tue, 7 Oct 2025 11:21:46 +0100 Subject: [PATCH] Added `customFlags` dict property to profile templates --- .../SPT_Data/database/templates/profiles.json | 27 ++++++++++++------- .../Eft/Common/Tables/ProfileTemplate.cs | 6 +++++ 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/Libraries/SPTarkov.Server.Assets/SPT_Data/database/templates/profiles.json b/Libraries/SPTarkov.Server.Assets/SPT_Data/database/templates/profiles.json index dc447986..083a0af7 100644 --- a/Libraries/SPTarkov.Server.Assets/SPT_Data/database/templates/profiles.json +++ b/Libraries/SPTarkov.Server.Assets/SPT_Data/database/templates/profiles.json @@ -6163,7 +6163,8 @@ ] }, "weaponbuilds": {} - } + }, + "customFlags": {} }, "Left Behind": { "descriptionLocaleKey": "launcher-profile_leftbehind", @@ -13426,7 +13427,8 @@ ] }, "weaponbuilds": {} - } + }, + "customFlags": {} }, "Prepare To Escape": { "descriptionLocaleKey": "launcher-profile_preparetoescape", @@ -21797,7 +21799,8 @@ ] }, "weaponbuilds": {} - } + }, + "customFlags": {} }, "Edge Of Darkness": { "descriptionLocaleKey": "launcher-profile-edgeofdarkness", @@ -30295,7 +30298,8 @@ ] }, "weaponbuilds": {} - } + }, + "customFlags": {} }, "Unheard": { "descriptionLocaleKey": "launcher-profile-unheard", @@ -40556,7 +40560,8 @@ ] }, "weaponbuilds": {} - } + }, + "customFlags": {} }, "Tournament": { "descriptionLocaleKey": "launcher-profile-tournament", @@ -42735,7 +42740,8 @@ ] }, "weaponbuilds": {} - } + }, + "customFlags": {} }, "SPT Developer": { "descriptionLocaleKey": "launcher-profile_sptdeveloper", @@ -49243,7 +49249,8 @@ "setQuestsAvailableForStart": true }, "weaponbuilds": {} - } + }, + "customFlags": {} }, "SPT Easy start": { "descriptionLocaleKey": "launcher-profile_spteasystart", @@ -56356,7 +56363,8 @@ "setQuestsAvailableForStart": false }, "weaponbuilds": {} - } + }, + "customFlags": {} }, "SPT Zero to hero": { "descriptionLocaleKey": "launcher-profile_sptzerotohero", @@ -58524,6 +58532,7 @@ ] }, "weaponbuilds": {} - } + }, + "customFlags": {} } } diff --git a/Libraries/SPTarkov.Server.Core/Models/Eft/Common/Tables/ProfileTemplate.cs b/Libraries/SPTarkov.Server.Core/Models/Eft/Common/Tables/ProfileTemplate.cs index d61fb67b..ec7efbb5 100644 --- a/Libraries/SPTarkov.Server.Core/Models/Eft/Common/Tables/ProfileTemplate.cs +++ b/Libraries/SPTarkov.Server.Core/Models/Eft/Common/Tables/ProfileTemplate.cs @@ -14,6 +14,12 @@ public record ProfileSides [JsonPropertyName("bear")] public TemplateSide? Bear { get; set; } + + /// + /// Custom flags can be stored here + /// + [JsonPropertyName("customFlags")] + public Dictionary CustomFlags { get; set; } } public record TemplateSide