Updated adjustExtracts() to push scav extracts into existing exits instead of overwriting

This commit is contained in:
Dev 2024-09-20 11:07:27 +01:00
parent 73eae5bd94
commit 47b2aee91a

View File

@ -129,10 +129,10 @@ export class LocationLifecycleService {
}
// Find only scav extracts and overwrite existing exits with them
const scavExtracts = mapExtracts.filter((extract) => ["scav", "coop"].includes(extract.Side.toLowerCase()));
const scavExtracts = mapExtracts.filter((extract) => ["scav"].includes(extract.Side.toLowerCase()));
if (scavExtracts.length > 0) {
// Scav extracts found, use them
locationData.exits = scavExtracts;
locationData.exits.push(...scavExtracts);
}
}
}