0
0
mirror of https://github.com/sp-tarkov/loot-dump-processor.git synced 2025-02-12 15:10:44 -05:00

Made forcedloot only get picked if array has only 1 item.

This commit is contained in:
Kaeno 2023-09-19 11:58:04 +01:00
parent 31af623d17
commit 6fb5ef2b9c

View File

@ -130,7 +130,8 @@ public class LooseLootProcessor
}).ToList();
// If any of the items is a quest item or forced loose loot items, or the item normally appreas 99.5%
if (itemDistribution.Any(item =>
// Only add position to forced loot if it has only 1 item in the array.
if (itemDistribution.Count == 1 && itemDistribution.Any(item =>
LootDumpProcessorContext.GetTarkovItems().IsQuestItem(item.ComposedKey?.FirstItem?.Tpl) ||
LootDumpProcessorContext.GetForcedLooseItems()[mapName].Contains(item.ComposedKey?.FirstItem?.Tpl))
)