PKHeX/Tests/PKHeX.Core.Tests/Legality/RNG/Wild8bRNGTests.cs
Kurt 95fbf66a6e
Refactor: Gen3/4 Lead Encounters, property fixing (#4193)
In addition to the Method 1 (and other sibling PIDIV types) correlation, an encounter can only be triggered if the calls prior land on the Method {1} seed. The RNG community has dubbed these patterns as "Method J" (D/P/Pt), "Method K" (HG/SS), and "Method H" (Gen3, coined by yours truly). The basic gist of these is that they are pre-requisites, like the Shadow locks of Colosseum/XD. 

Rename/re-type a bunch of properties to get the codebase more in line with correct property names & more obvious underlying types.
2024-02-22 21:20:54 -06:00

24 lines
777 B
C#

using FluentAssertions;
using Xunit;
namespace PKHeX.Core.Tests.Legality;
public static class Wild8bRNGTests
{
[Fact]
public static void TryGenerateLatias()
{
PB8 test = new() { Species = (int)Species.Latias};
const ulong s0 = 0xdf9cf5c73e4a160b;
const ulong s1 = 0xd0b8383103a7f201;
Wild8bRNG.TryApplyFromSeed(test, EncounterCriteria.Unrestricted, Shiny.Random, 3, new XorShift128(s0, s1), AbilityPermission.Any12);
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);
}
}