Init scavs Encyclopedia on generation

This commit is contained in:
Dev 2024-03-20 17:58:32 +00:00
parent ee7c2aab36
commit ecfd6883d0

View File

@ -114,7 +114,7 @@ export class PlayerScavGenerator
scavData.TaskConditionCounters = existingScavDataClone.TaskConditionCounters ?? {};
scavData.Notes = existingScavDataClone.Notes ?? { Notes: [] };
scavData.WishList = existingScavDataClone.WishList ?? [];
scavData.Encyclopedia = pmcDataClone.Encyclopedia;
scavData.Encyclopedia = pmcDataClone.Encyclopedia ?? {};
// Add additional items to player scav as loot
this.addAdditionalLootToPlayerScavContainers(playerScavKarmaSettings.lootItemsToAddChancePercent, scavData, [