Exclude scav coop exits when choosing pmc exit
This commit is contained in:
parent
727a85f5fc
commit
f38d098aae
@ -731,10 +731,18 @@ export class RepeatableQuestGenerator
|
|||||||
if (requiresSpecificExtract)
|
if (requiresSpecificExtract)
|
||||||
{
|
{
|
||||||
// Filter by whitelist, it's also possible that the field "PassageRequirement" does not exist (e.g. Shoreline)
|
// Filter by whitelist, it's also possible that the field "PassageRequirement" does not exist (e.g. Shoreline)
|
||||||
const mapExits = this.getLocationExitsForSide(locationKey, repeatableConfig.side);
|
let mapExits = this.getLocationExitsForSide(locationKey, repeatableConfig.side);
|
||||||
|
|
||||||
|
// Exclude scav coop exits when choosing pmc exit
|
||||||
|
if (repeatableConfig.side === "Pmc")
|
||||||
|
{
|
||||||
|
mapExits = mapExits.filter(exit => exit.PassageRequirement !== "ScavCooperation")
|
||||||
|
}
|
||||||
|
|
||||||
// Only get exits that have a greater than 0% chance to spawn
|
// Only get exits that have a greater than 0% chance to spawn
|
||||||
const exitPool = mapExits.filter(exit => exit.Chance > 0);
|
const exitPool = mapExits.filter(exit => exit.Chance > 0);
|
||||||
|
|
||||||
|
// Exclude exits with a requirement to leave (e.g. car extracts)
|
||||||
const possibleExits = exitPool.filter((exit) =>
|
const possibleExits = exitPool.filter((exit) =>
|
||||||
(!("PassageRequirement" in exit)
|
(!("PassageRequirement" in exit)
|
||||||
|| repeatableConfig.questConfig.Exploration.specificExits.passageRequirementWhitelist.includes(
|
|| repeatableConfig.questConfig.Exploration.specificExits.passageRequirementWhitelist.includes(
|
||||||
|
Loading…
Reference in New Issue
Block a user