Add rebattleable Miror B locations to xd shadows

https://projectpokemon.org/home/forums/topic/44957-bug-pokemon-xd-post-game-shadows-flagged-illegal/

if shadow lock sets are ever implemented, would need to update this as
well to 'clone' with the different shadow teams available.
This commit is contained in:
Kurt 2018-04-23 17:14:52 -07:00
parent 505877763b
commit 1b4ec11335

View File

@ -604,7 +604,21 @@ private static EncounterArea GetUnownArea(int location, IReadOnlyList<int> SlotF
},
};
internal static readonly EncounterStatic[] Encounter_CXD = Encounter_Colo.Concat(Encounter_XD).ToArray();
private static readonly int[] MirorBXDLocations =
{
090, // Rock
091, // Oasis
092, // Cave
113, // Pyrite Town
059, // Realgam Tower
};
internal static readonly EncounterStatic[] Encounter_CXD = Encounter_Colo.Concat(Encounter_XD.SelectMany(CloneMirorB)).ToArray();
private static IEnumerable<EncounterStatic> CloneMirorB(EncounterStatic arg)
{
yield return arg;
foreach (int loc in MirorBXDLocations)
yield return arg.Clone(loc);
}
#endregion
}