Added config to not included secure container loot in PMCs - set to false by default
This commit is contained in:
parent
d32d1cb50b
commit
99444c7237
@ -704,5 +704,6 @@
|
||||
],
|
||||
"forceHealingItemsIntoSecure": true,
|
||||
"addPrefixToSameNamePMCAsPlayerChance": 40,
|
||||
"allPMCsHavePlayerNameWithRandomPrefixChance": 1
|
||||
"allPMCsHavePlayerNameWithRandomPrefixChance": 1,
|
||||
"addSecureContainerLootFromBotConfig": false
|
||||
}
|
@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user