mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 22:54:14 +00:00
Remove unobtainable encounter slots from gen4 tables
This commit is contained in:
parent
a159da0abf
commit
a57e12db59
3 changed files with 0 additions and 16 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue