PKHeX/PKHeX.Core/Legality/RNG/Algorithms
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
..
LCRNG.cs Split RNG class into simple & enhanced 2021-03-10 22:30:30 -08:00
RNG.cs Split RNG class into simple & enhanced 2021-03-10 22:30:30 -08:00
RNGType.cs ArgumentException -> ArgumentOutOfRangeException 2021-08-21 16:51:50 -07:00
RNGUtil.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
Xoroshiro128Plus.cs Add logic for PLA wild RNG correlation (#3443) 2022-02-20 17:59:48 -08:00
Xoroshiro128Plus8b.cs Add prev function for xoroshiro implementations 2022-01-13 18:43:04 -08:00
XorShift128.cs Add Prev for xorshift implementation 2022-01-12 17:05:16 -08:00