Fix off-by-one (#2382)

This commit is contained in:
Matt
2019-09-02 22:28:48 -04:00
committed by Kurt
parent 0fc9b4dd15
commit afd4ff25a5

View File

@@ -111,7 +111,7 @@ EncounterSlot GetSlot(int species, int form)
027, // Sandshrew
028, // Sandslash
037, // Vulpix
038, // Ninetails
038, // Ninetales
050, // Diglett
051, // Dugtrio
052, // Meowth
@@ -134,10 +134,10 @@ EncounterSlot GetSlot(int species, int form)
slots[slots.Length - 2].LevelMin = 20; // Raichu
slots[slots.Length - 1].LevelMin = 20; // Marowak
slots[(int)Species.Mewtwo].LevelMin = 20;
slots[(int)Species.Articuno].LevelMin = 15;
slots[(int)Species.Zapdos].LevelMin = 15;
slots[(int)Species.Moltres].LevelMin = 15;
slots[(int)Species.Mewtwo - 1].LevelMin = 20;
slots[(int)Species.Articuno - 1].LevelMin = 15;
slots[(int)Species.Zapdos - 1].LevelMin = 15;
slots[(int)Species.Moltres - 1].LevelMin = 15;
area.Slots = slots;
return new[] {area};