mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-22 02:13:10 +00:00
be4d30bb6d
since there's 300 calls to rand to shuffle, I wouldn't be surprised if there are vblanks messing up the frames judging from my data 6 years ago (wow, still wrong, just look at the frame offsets) http://www.smogon.com/forums/threads/past-gen-rng-research.61090/page-35#post-4021415 looks like it happens quite erratically. may have to just override this to return true for all gen3 safari mons as it's entirely unpredictable.
16 lines
No EOL
386 B
C#
16 lines
No EOL
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,
|
|
}
|
|
}
|
|
} |