PKHeX/PKHeX.Core/Legality
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
..
Bulk Encounter Templates: Searching and Creating (#3955) 2023-08-12 16:01:16 -07:00
Encounters Add Xoroshiro128Plus Solver, SW/SH Raid verification (#3961) 2023-08-14 20:01:38 -07:00
Evolutions Encounter Templates: Searching and Creating (#3955) 2023-08-12 16:01:16 -07:00
Formatting More fixes/improvements 2023-07-08 12:46:46 -07:00
Learnset Misc fixes 2023-07-06 19:41:27 -07:00
LearnSource Encounter Templates: Searching and Creating (#3955) 2023-08-12 16:01:16 -07:00
Moves Encounter Templates: Searching and Creating (#3955) 2023-08-12 16:01:16 -07:00
Restrictions Encounter Templates: Searching and Creating (#3955) 2023-08-12 16:01:16 -07:00
RNG Add Xoroshiro128Plus Solver, SW/SH Raid verification (#3961) 2023-08-14 20:01:38 -07:00
Structures Encounter Templates: Searching and Creating (#3955) 2023-08-12 16:01:16 -07:00
Tables Add HOME hoopa move share, add form specific check 2023-07-15 13:58:41 -07:00
Verifiers Encounter Templates: Searching and Creating (#3955) 2023-08-12 16:01:16 -07:00
BinLinkerAccessor.cs Update from .NET Framework 4.6 to .NET 7 (#3729) 2023-01-21 20:02:33 -08:00
Breeding.cs More fixes/improvements 2023-07-08 12:46:46 -07:00
BulkGenerator.cs Add more xmldoc 2023-03-31 13:00:34 -07:00
Core.cs Evotree: Evolution Traversal Enhancements (#3936) 2023-07-05 21:14:09 -07:00
LegalityAnalysis.cs Encounter Templates: Searching and Creating (#3955) 2023-08-12 16:01:16 -07:00
LegalityAnalyzers.cs Encounter Templates: Searching and Creating (#3955) 2023-08-12 16:01:16 -07:00
MoveListSuggest.cs More fixes/improvements 2023-07-08 12:46:46 -07:00
MoveSourceType.cs Add more xmldoc 2023-03-31 13:00:34 -07:00