PKHeX/PKHeX.Core/Legality/RNG/Frame/Pokeblock.cs
2021-03-14 11:28:46 -07:00

17 lines
388 B
C#

namespace PKHeX.Core
{
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,
}
}
}