PKHeX/PKHeX.Core/Legality/RNG/Methods/ToxtricityUtil.cs
2022-11-25 19:55:44 -08:00

13 lines
447 B
C#

namespace PKHeX.Core;
public static class ToxtricityUtil
{
private static readonly byte[] Nature0 = { 3, 4, 2, 8, 9, 19, 22, 11, 13, 14, 0, 6, 24 };
private static readonly byte[] Nature1 = { 1, 5, 7, 10, 12, 15, 16, 17, 18, 20, 21, 23 };
public static byte GetRandomNature(ref Xoroshiro128Plus rand, byte form)
{
var table = form == 0 ? Nature0 : Nature1;
return table[rand.NextInt((uint)table.Length)];
}
}