Fix GSC table loading

Was ignoring G/S slots (only had crystal) thus some special G/S
encounters (underleveled examples being Magmar lvl14) were not
recognized.
Thanks HaxAras!

https://projectpokemon.org/forums/forums/topic/41579-pokemon-silver-under-leveled-pokemon-flagged-as-illegal/
This commit is contained in:
Kurt 2017-09-06 20:03:36 -07:00
parent 423be8b2c0
commit f78e017e47

View File

@ -34,7 +34,7 @@ private static EncounterArea[] GetTables2(GameVersion Version)
var f = EncounterArea.GetArray2_F(Util.GetBinaryResource("encounter_gsc_f.pkl"));
EncounterArea[] Slots = new EncounterArea[0];
if (GameVersion.GS.Contains(Version))
if (Version.Contains(GameVersion.GS))
Slots = GetSlots_GS(f);
if (Version.Contains(GameVersion.C))
Slots = AddExtraTableSlots(Slots, GetSlots_C(f));