PKHeX/Tests/PKHeX.Core.Tests/Legality
Kurt d5be6254f3
Add logic for PLA wild RNG correlation (#3443)
Adds structures to read/write saved spawner data such as seeds, counts.
Adds generator and validator to emulate the FixInitSpec builder used by the game logic

Similar to SW/SH raids, validating these in-process is not feasible due to the number crunching required.

This does not handle the encounter slot call or the follow-up level range call. Just the inner FixInitSpec ctor & fill.

level is calc'd:
randFloat(sum) -> slot float
rand.Next() -> gen_seed (for all the details)
rand.NextInt(delta) +min -> level

Co-Authored-By: Lusamine <30205550+Lusamine@users.noreply.github.com>
2022-02-20 17:59:48 -08:00
..
Illegal Rearrange how some memory info is checked 2021-08-22 16:41:57 -07:00
Legal Update lgpe route20 lapras level range 2022-02-04 00:53:29 -08:00
BreedTests.cs Add Breeding move ordering logic, and use in legality analysis (#3183) 2021-04-04 18:30:01 -07:00
LearnabilityTests.cs Update 21.11.19 - Brilliant Diamond & Shining Pearl (#3289) 2021-11-19 18:23:49 -08:00
LegalityData.cs Handle test case for no feebas in PLA 2022-02-08 18:55:55 -08:00
LegalityRules.cs Split encounter areas, relocate slot finding to obj 2019-09-12 23:20:52 -07:00
LegalityTests.cs Split legality tests into subtests by folder 2021-08-06 14:33:34 -07:00
RaidTests.cs Add private files legality test method 2021-08-06 13:19:27 -07:00
ShadowTests.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
TempTests.cs Ban more BDSP egg moves before HOME 2021-12-20 19:00:48 -08:00
Wild8aRNGTests.cs Add logic for PLA wild RNG correlation (#3443) 2022-02-20 17:59:48 -08:00
Wild8bRNGTests.cs Handle suggestions 2022-01-17 20:21:33 -08:00