PKHeX/PKHeX.Core/Legality/RNG/Frame/Pokeblock.cs
2022-08-21 01:39:16 -07:00

19 lines
411 B
C#

namespace PKHeX.Core;
/// <summary>
/// Logic for Poké Blocks used in generation 3/4.
/// </summary>
public static class Pokeblock
{
public static Flavor GetLikedBlockFlavor(uint nature) => (Flavor)(nature/5);
public static Flavor GetDislikedBlockFlavor(uint nature) => (Flavor)(nature%5);
public enum Flavor
{
Spicy,
Sour,
Sweet,
Dry,
Bitter,
}
}