Allow Scavs to examine items and retain their Encyclopedia (Examined Items)

This commit is contained in:
Kaeno 2024-02-10 14:17:33 +00:00
parent 3b3105a376
commit 882c1d6082

View File

@ -119,6 +119,7 @@ export class PlayerScavGenerator
scavData.TaskConditionCounters = existingScavDataClone.TaskConditionCounters ?? {}; scavData.TaskConditionCounters = existingScavDataClone.TaskConditionCounters ?? {};
scavData.Notes = existingScavDataClone.Notes ?? { Notes: [] }; scavData.Notes = existingScavDataClone.Notes ?? { Notes: [] };
scavData.WishList = existingScavDataClone.WishList ?? []; scavData.WishList = existingScavDataClone.WishList ?? [];
scavData.Encyclopedia = existingScavDataClone.Encyclopedia ?? {};
// Add an extra labs card to pscav backpack based on config chance // Add an extra labs card to pscav backpack based on config chance
if (this.randomUtil.getChance100(playerScavKarmaSettings.labsAccessCardChancePercent)) if (this.randomUtil.getChance100(playerScavKarmaSettings.labsAccessCardChancePercent))