PKHeX/PKHeX.Core/Game
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
..
Enums Add Xoroshiro128Plus Solver, SW/SH Raid verification (#3961) 2023-08-14 20:01:38 -07:00
GameStrings Pokemon location tooltip fix for PLA + miscellaneous comment fixes (#3920) 2023-06-20 10:36:28 -07:00
Locations More encountertrade workarounds 2023-07-11 16:25:05 -07:00
ComboItem.cs Minor clean 2022-03-05 18:13:31 -08:00
GameUtil.cs Initial support for Pokémon HOME 3.0.0 (#3899) 2023-06-03 18:19:16 -07:00
IBasicStrings.cs File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00