Prevent duplicate items spawning in static containers

This commit is contained in:
Dev 2024-01-07 20:17:07 +00:00
parent ed82e9ed2f
commit 6231a56fea

View File

@ -429,7 +429,7 @@ export class LocationGenerator
itemCountToAdd,
this.locationConfig.allowDuplicateItemsInStaticContainers,
locklist,
);
).filter(x => !tplsForced.includes(x));
// Add forced loot to chosen item pool
const tplsToAddToContainer = tplsForced.concat(chosenTpls);