mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-29 13:00:30 -05:00
Update EncountersGO.cs
This commit is contained in:
@@ -704,24 +704,6 @@ internal static class EncountersGO
|
||||
(int)Darkrai,
|
||||
};
|
||||
|
||||
private static readonly HashSet<int> ShinyBan_LGPE = new HashSet<int>
|
||||
{
|
||||
(int)Spearow, (int)Fearow,
|
||||
(int)Paras, (int)Parasect,
|
||||
(int)Slowpoke, (int)Slowbro,
|
||||
(int)Hitmonlee, (int)Hitmonchan,
|
||||
(int)Goldeen, (int)Seaking,
|
||||
(int)Ditto,
|
||||
(int)Snorlax,
|
||||
};
|
||||
|
||||
private static readonly HashSet<int> ShinyBan = new HashSet<int>(ShinyBan_LGPE)
|
||||
{
|
||||
(int)Mew,
|
||||
|
||||
// ??
|
||||
};
|
||||
|
||||
internal static readonly EncounterArea7g[] SlotsGO_GG = EncounterArea7g.GetArea(RequireLevelIV_Raid15_1_LGPE);
|
||||
internal static readonly EncounterArea8g[] SlotsGO = EncounterArea8g.GetArea(MaxSpeciesID_GO_HOME, DisallowedSpecies, ExtraSpecies);
|
||||
|
||||
@@ -741,7 +723,7 @@ internal static bool IsBallValid(int species, int form, Ball ball)
|
||||
if (RequireLevelIV_Egg1_1.Contains(sf) || RequireLevelIV_EggShiny1_1.Contains(sf))
|
||||
return ball == Ball.Poke;
|
||||
|
||||
return ball <= Ball.Ultra;
|
||||
return Ball.Ultra <= ball && ball <= Ball.Poke;
|
||||
}
|
||||
|
||||
internal static int GetMinLevel(int species, int form)
|
||||
@@ -784,7 +766,7 @@ public static bool IsShinyValid(int species, int form, Ball pkmBall)
|
||||
if (pkmBall == Ball.Premier)
|
||||
return false;
|
||||
|
||||
return ShinyBan.Contains(sf);
|
||||
return UnavailableShiny.Contains(sf);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user