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

20 lines
411 B
C#
Raw Normal View History

2022-08-21 08:39:16 +00:00
namespace PKHeX.Core;
2022-08-21 08:39:16 +00:00
/// <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);
2018-09-15 05:37:47 +00:00
public enum Flavor
{
Spicy,
Sour,
Sweet,
Dry,
Bitter,
}
2021-03-14 18:28:46 +00:00
}