mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 22:40:22 +00:00
16 lines
386 B
C#
16 lines
386 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,
|
|||
|
}
|
|||
|
}
|
|||
|
}
|