Update MassOutbreakRipper.cs

This commit is contained in:
Kurt 2025-07-05 16:30:50 -05:00
parent 67125d5552
commit d6384a531e

View File

@ -369,15 +369,17 @@ private static void AddToJar(IEnumerable<CachedOutbreak> encs)
for (var x = 0; x < areaNames.Count; x++)
{
var area = areaNames[x];
if (area == areaName)
var otherArea = areaNames[x];
if (otherArea == areaName)
continue;
if (!scene.TryGetContainsCheck(fieldIndex, area, out var subCol))
if (!scene.TryGetContainsCheck(fieldIndex, otherArea, out var subCol))
continue;
if (!EncounterDumperSV.IsContainedBy(subCol, pt))
continue;
if (!EncounterDumperSV.TryGetPlaceName(ref area, areaInfo, pt, placeNameMap, areas, scene, fieldIndex, out placeName))
var otherInfo = areas[otherArea];
if (!EncounterDumperSV.TryGetPlaceName(ref otherArea, otherInfo, pt, placeNameMap, areas, scene, fieldIndex, out placeName))
continue;
loc = placeNameMap[placeName].Index;
if (!EncounterDumperSV.IsCrossoverAllowed(loc))