From 48b41add00c51ba80f0ae1b12e77180ae75c350f Mon Sep 17 00:00:00 2001 From: Chomp Date: Fri, 10 Oct 2025 10:54:13 +0100 Subject: [PATCH] Added dummy head to PMCs during Halloween event Made `FIxDogtag` method protected --- .../SPT_Data/database/bots/types/bear.json | 17 +++++++++-------- .../SPT_Data/database/bots/types/usec.json | 17 +++++++++-------- .../Services/PostDbLoadService.cs | 5 ++++- .../Services/SeasonalEventService.cs | 10 ++++++++++ 4 files changed, 32 insertions(+), 17 deletions(-) diff --git a/Libraries/SPTarkov.Server.Assets/SPT_Data/database/bots/types/bear.json b/Libraries/SPTarkov.Server.Assets/SPT_Data/database/bots/types/bear.json index ce008102..486866e8 100644 --- a/Libraries/SPTarkov.Server.Assets/SPT_Data/database/bots/types/bear.json +++ b/Libraries/SPTarkov.Server.Assets/SPT_Data/database/bots/types/bear.json @@ -55,14 +55,15 @@ "5cc0876314c02e000c6bea6b": 1 }, "head": { - "5cc084dd14c02e000b0550a3": 1, - "5fdb50bb2b730a787b3f78cf": 1, - "5fdb7571e4ed5b5ea251e529": 1, - "60a6aaad42fd2735e4589978": 1, - "619f94f5b90286142b59d45f": 1, - "62a9e7d15ea3b87d6f642a28": 1, - "6574aa9a1b144de18c0fba45": 1, - "675ac3957908e416a20861e6": 1 + "5cc084dd14c02e000b0550a3": 10, + "5fdb50bb2b730a787b3f78cf": 10, + "5fdb7571e4ed5b5ea251e529": 10, + "60a6aaad42fd2735e4589978": 10, + "619f94f5b90286142b59d45f": 10, + "62a9e7d15ea3b87d6f642a28": 10, + "6574aa9a1b144de18c0fba45": 10, + "675ac3957908e416a20861e6": 10, + "6644d2da35d958070c02642c": 0 }, "voice": { "5fc1221a95572123ae7384a2": 1, diff --git a/Libraries/SPTarkov.Server.Assets/SPT_Data/database/bots/types/usec.json b/Libraries/SPTarkov.Server.Assets/SPT_Data/database/bots/types/usec.json index e4af6700..8306f52a 100644 --- a/Libraries/SPTarkov.Server.Assets/SPT_Data/database/bots/types/usec.json +++ b/Libraries/SPTarkov.Server.Assets/SPT_Data/database/bots/types/usec.json @@ -45,14 +45,15 @@ "5cde95fa7d6c8b04737c2d13": 1 }, "head": { - "5cde96047d6c8b20b577f016": 1, - "5fdb4139e4ed5b5ea251e4ed": 1, - "5fdb5950f5264a66150d1c6e": 1, - "60a6aa8fd559ae040d0d951f": 1, - "619f9e338858a474c8685cc9": 1, - "62aca6a1310e67685a2fc2e7": 1, - "6574aabee0423b9ebe0c79cf": 1, - "6764194e4dec6d46f106f9f6": 1 + "5cde96047d6c8b20b577f016": 10, + "5fdb4139e4ed5b5ea251e4ed": 10, + "5fdb5950f5264a66150d1c6e": 10, + "60a6aa8fd559ae040d0d951f": 10, + "619f9e338858a474c8685cc9": 10, + "62aca6a1310e67685a2fc2e7": 10, + "6574aabee0423b9ebe0c79cf": 10, + "6764194e4dec6d46f106f9f6": 10, + "6644d2da35d958070c02642c": 0 }, "voice": { "5fc1223595572123ae7384a3": 1, diff --git a/Libraries/SPTarkov.Server.Core/Services/PostDbLoadService.cs b/Libraries/SPTarkov.Server.Core/Services/PostDbLoadService.cs index a9add4d8..71e2c04f 100644 --- a/Libraries/SPTarkov.Server.Core/Services/PostDbLoadService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/PostDbLoadService.cs @@ -133,7 +133,10 @@ public class PostDbLoadService( } } - private void FixDogtagCaseNotAcceptingAllDogtags() + /// + /// BSG don't have all the new dogtag types in the containers allowed list + /// + protected void FixDogtagCaseNotAcceptingAllDogtags() { //Find case to add new ids to if (!databaseService.GetItems().TryGetValue(ItemTpl.CONTAINER_DOGTAG_CASE, out var dogtagCase)) diff --git a/Libraries/SPTarkov.Server.Core/Services/SeasonalEventService.cs b/Libraries/SPTarkov.Server.Core/Services/SeasonalEventService.cs index 0b07d6d6..408c9fe4 100644 --- a/Libraries/SPTarkov.Server.Core/Services/SeasonalEventService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/SeasonalEventService.cs @@ -467,6 +467,16 @@ public class SeasonalEventService( AddPumpkinsToScavBackpacks(); AdjustTraderIcons(eventType.Type); + + if (databaseService.GetBots().Types.TryGetValue("bear", out var bear)) + { + bear.BotAppearance.Head[new MongoId("6644d2da35d958070c02642c")] = 30; + } + + if (databaseService.GetBots().Types.TryGetValue("usec", out var usec)) + { + usec.BotAppearance.Head[new MongoId("6644d2da35d958070c02642c")] = 30; + } } protected void ApplyChristmasEvent(SeasonalEvent eventType, Config globalConfig)