PKHeX/Tests/PKHeX.Core.Tests/Legality/Illegal
Kurt c6a961bda6
Add Xoroshiro128Plus Solver, SW/SH Raid verification (#3961)
Due to how the game generates the Pokémon data, the first two (or three) RNG calls are used to set the 32-bit `EncryptionConstant` and `PID`. With 2x 32-bit and 1x 64-bit values, we can algorithmically reverse the movement & manipulation of bits to recover the initial seed. Notably, certain bits of the initial state are not captured by our first two (or three) outputs, so we must brute-force guess at the initial state, and verify the RNG's output yields the expected values.

**With the ability for real-time Xoroshiro128+ seed reversal, we can now validate RNG correlations for SW/SH raid encounters natively within the program.** For now, the legality fail error message is extremely vague and any validated seed won't be "remembered" for the Legality Parse like other RNG methods. These seeds are 64bit, while every other "remembered" `PID/IV` seed-info is 32-bit.

Co-Authored-By: SciresM <8676005+SciresM@users.noreply.github.com>
2023-08-14 20:01:38 -07:00
..
AltForm Check species for static enc match 2020-09-24 19:44:48 -07:00
Evolution Provide min level to evochain fetch 2019-07-02 08:34:28 -07:00
Gen7b Swap lgpe sandshrew/vulpix version restrictions 2021-01-05 17:30:14 -08:00
Gen8 Add Xoroshiro128Plus Solver, SW/SH Raid verification (#3961) 2023-08-14 20:01:38 -07:00
Misc Disallow matching if notradeback loc wiped 2023-01-21 22:01:50 -08:00
Moves Port tests to .Net Core (#2156) 2018-11-06 15:25:35 -08:00
Ribbons Check Winning/Victory ribbons for gen3 origin based on encounter 2020-09-18 16:23:17 -07:00
WC3 Port tests to .Net Core (#2156) 2018-11-06 15:25:35 -08:00
WC7 Refine zygarde encounter form checking logic 2020-09-13 15:45:15 -07:00
Wild Port tests to .Net Core (#2156) 2018-11-06 15:25:35 -08:00