GO: Add handling for WCS 2024 timed research encs

f2296ccedb update pickles because Necrozma encounter types had to be incremented by one
This commit is contained in:
sora10pls 2024-08-17 13:58:04 -04:00
parent 8dae16102d
commit 8fdcb634f0
3 changed files with 6 additions and 1 deletions

View file

@ -48,6 +48,10 @@ public enum PogoType : byte
/// </remarks>
ResearchNH,
/// <summary> Pokémon captured after completing Field Research. </summary>
/// <remarks> Unlike standard Field Research encounters, these are lowered to Level 10. </remarks>
Research10,
/// <summary> Pokémon captured after completing Field Research. </summary>
/// <remarks> Unlike standard Field Research encounters, these are boosted to Level 20. </remarks>
Research20,
@ -101,6 +105,7 @@ public static class PogoTypeExtensions
PogoType.ResearchUB => 15,
PogoType.ResearchMH => 15,
PogoType.ResearchNH => 15,
PogoType.Research10 => 10,
PogoType.Research20 => 20,
PogoType.ResearchUB20 => 20,
PogoType.GBL => 20,
@ -151,7 +156,7 @@ public static class PogoTypeExtensions
/// <returns>True if valid, false if invalid.</returns>
public static bool IsMasterBallUsable(this PogoType encounterType) => encounterType switch
{
PogoType.Egg or PogoType.EggS => false,
PogoType.Egg or PogoType.EggS => false,
PogoType.ResearchMP or PogoType.ResearchUB or PogoType.ResearchMH or PogoType.ResearchNH or PogoType.ResearchUB20 => false,
_ => true,
};