2022-01-18 04:21:33 +00:00
|
|
|
|
using FluentAssertions;
|
2022-01-16 06:44:58 +00:00
|
|
|
|
using Xunit;
|
|
|
|
|
|
|
|
|
|
namespace PKHeX.Core.Tests.Legality
|
|
|
|
|
{
|
|
|
|
|
public static class Wild8bRNGTests
|
|
|
|
|
{
|
|
|
|
|
[Fact]
|
|
|
|
|
public static void TryGenerateLatias()
|
|
|
|
|
{
|
|
|
|
|
PB8 test = new() { Species = (int)Species.Latias};
|
2022-01-18 04:21:33 +00:00
|
|
|
|
const ulong s0 = 0xdf9cf5c73e4a160b;
|
|
|
|
|
const ulong s1 = 0xd0b8383103a7f201;
|
2022-03-08 16:44:55 +00:00
|
|
|
|
Wild8bRNG.TryApplyFromSeed(test, EncounterCriteria.Unrestricted, Shiny.Random, 3, new XorShift128(s0, s1), AbilityPermission.Any12);
|
2022-01-16 06:44:58 +00:00
|
|
|
|
test.IV_HP.Should().Be(31);
|
|
|
|
|
test.IV_ATK.Should().Be(4);
|
|
|
|
|
test.IV_DEF.Should().Be(31);
|
|
|
|
|
test.IV_SPA.Should().Be(31);
|
|
|
|
|
test.IV_SPD.Should().Be(6);
|
|
|
|
|
test.IV_SPE.Should().Be(8);
|
|
|
|
|
test.HeightScalar.Should().Be(123);
|
|
|
|
|
test.WeightScalar.Should().Be(115);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|