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 @@ private static IEnumerable<EncounterSlot> GetSlots(PKM pk, IReadOnlyList<int> ne
{
if (!IsSane(chain, slot))
continue;
if (slot.IsUnobtainable())
continue;
if (needs.Count == 0)
{
@@ -407,20 +405,6 @@ private static bool IsSane(IReadOnlyList<EvoCriteria> chain, IEncounterTemplate
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)
{