mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-25 03:43:16 +00:00
14 lines
447 B
C#
14 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)];
|
||
|
}
|
||
|
}
|