diff --git a/project/assets/configs/pmc.json b/project/assets/configs/pmc.json index 3bb2f0d0..7d882731 100644 --- a/project/assets/configs/pmc.json +++ b/project/assets/configs/pmc.json @@ -704,5 +704,6 @@ ], "forceHealingItemsIntoSecure": true, "addPrefixToSameNamePMCAsPlayerChance": 40, - "allPMCsHavePlayerNameWithRandomPrefixChance": 1 + "allPMCsHavePlayerNameWithRandomPrefixChance": 1, + "addSecureContainerLootFromBotConfig": false } \ No newline at end of file diff --git a/project/src/generators/BotLootGenerator.ts b/project/src/generators/BotLootGenerator.ts index e0e85505..9edadd85 100644 --- a/project/src/generators/BotLootGenerator.ts +++ b/project/src/generators/BotLootGenerator.ts @@ -290,17 +290,22 @@ export class BotLootGenerator ); // Secure - this.addLootFromPool( - this.botLootCacheService.getLootFromCache(botRole, isPmc, LootCacheType.SECURE, botJsonTemplate), - [EquipmentSlots.SECURED_CONTAINER], - 50, - botInventory, - botRole, - null, - -1, - isPmc, - containersIdFull, - ); + + // only add if not a pmc or is pmc and flag is true + if (!isPmc || (isPmc && this.pmcConfig.addSecureContainerLootFromBotConfig)) + { + this.addLootFromPool( + this.botLootCacheService.getLootFromCache(botRole, isPmc, LootCacheType.SECURE, botJsonTemplate), + [EquipmentSlots.SECURED_CONTAINER], + 50, + botInventory, + botRole, + null, + -1, + isPmc, + containersIdFull, + ); + } } /** diff --git a/project/src/models/spt/config/IPmcConfig.ts b/project/src/models/spt/config/IPmcConfig.ts index bae06a7f..571c42c5 100644 --- a/project/src/models/spt/config/IPmcConfig.ts +++ b/project/src/models/spt/config/IPmcConfig.ts @@ -48,6 +48,8 @@ export interface IPmcConfig extends IBaseConfig /** Force a number of healing items into PMCs secure container to ensure they can heal */ forceHealingItemsIntoSecure: boolean; allPMCsHavePlayerNameWithRandomPrefixChance: number; + /** Should secure container loot from usec.json/bear.json be added to pmc bots secure */ + addSecureContainerLootFromBotConfig: boolean; } export interface PmcTypes