2022-08-21 08:39:16 +00:00
|
|
|
namespace PKHeX.Core;
|
2022-06-18 18:04:24 +00:00
|
|
|
|
2022-08-21 08:39:16 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Logic for Poké Blocks used in generation 3/4.
|
|
|
|
/// </summary>
|
2022-06-18 18:04:24 +00:00
|
|
|
public static class Pokeblock
|
2017-11-27 04:07:38 +00:00
|
|
|
{
|
2022-06-18 18:04:24 +00:00
|
|
|
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
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
public enum Flavor
|
|
|
|
{
|
|
|
|
Spicy,
|
|
|
|
Sour,
|
|
|
|
Sweet,
|
|
|
|
Dry,
|
|
|
|
Bitter,
|
2017-11-27 04:07:38 +00:00
|
|
|
}
|
2021-03-14 18:28:46 +00:00
|
|
|
}
|