Pokémon 30th Anniversary: All Out event handling

This commit is contained in:
sora10pls 2026-03-07 18:44:33 -05:00
parent ff72af52ad
commit e5e7cc914c
3 changed files with 4 additions and 1 deletions

View File

@ -12,6 +12,7 @@ public enum PogoType : byte
// Pokémon captured in the wild.
Wild,
Wild20,
// Pokémon hatched from Eggs.
Egg,
@ -137,6 +138,7 @@ public static class PogoTypeExtensions
public byte LevelMin => encounterType switch
{
Wild => 1,
Wild20 => 20,
Egg => 1,
Egg12km => 8,
Raid => 20,
@ -204,6 +206,7 @@ public static class PogoTypeExtensions
public int MinimumIV => encounterType switch
{
Wild => 0,
Wild20 => 0,
RaidMythical => 10,
RaidShadowMythical => 8,
RaidShadowMythicalGOWA => 8,
@ -324,6 +327,6 @@ public bool IsBallValid(Ball ball)
_ => Ball.None, // Poké, Great, Ultra
};
public bool IsSpecialResearch => encounterType is >= SpecialMythical and < TimedMythical;
public bool IsSpecialResearch => encounterType is SpecialResearch or >= SpecialMythical and < TimedMythical;
}
}