From ecfd6883d033617cdfd4ab4e33114e1a0ab3c708 Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 20 Mar 2024 17:58:32 +0000 Subject: [PATCH] Init scavs Encyclopedia on generation --- project/src/generators/PlayerScavGenerator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/generators/PlayerScavGenerator.ts b/project/src/generators/PlayerScavGenerator.ts index 14455db6..ba21b8b6 100644 --- a/project/src/generators/PlayerScavGenerator.ts +++ b/project/src/generators/PlayerScavGenerator.ts @@ -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, [