Remove unobtainable encounter slots from gen4 tables

This commit is contained in:
Kurt 2021-07-30 13:06:15 -07:00
parent a159da0abf
commit a57e12db59
3 changed files with 0 additions and 16 deletions

View file

@ -373,8 +373,6 @@ namespace PKHeX.Core
{
if (!IsSane(chain, slot))
continue;
if (slot.IsUnobtainable())
continue;
if (needs.Count == 0)
{
@ -407,20 +405,6 @@ namespace PKHeX.Core
return false;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static bool IsUnobtainable(this EncounterSlot slot)
{
switch (slot.Generation)
{
case 4:
if (slot.Location == 193 && slot.Area.Type == SlotType.Surf) // Johto Route 45 surfing encounter. Unreachable Water tiles.
return true;
break;
}
return false;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static bool IsUnobtainable(this EncounterStatic enc)
{