PKHeX/PKHeX.Core/Legality/RNG/Frame/Pokeblock.cs

17 lines
334 B
C#
Raw Normal View History

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);
2018-09-15 05:37:47 +00:00
public enum Flavor
{
Spicy,
Sour,
Sweet,
Dry,
Bitter,
}
2021-03-14 18:28:46 +00:00
}