2
0
Fork 0
mirror of https://github.com/kwsch/PKHeX synced 2024-12-26 12:23:11 +00:00
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
}