PKHeX/PKHeX.Core/Legality/Encounters/EncounterSlot
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
..
GO Expose shiny potential value 2022-01-07 17:48:12 -08:00
EncounterSlot.cs Fix EncounterSlot form set order, copy expgrowth for consistency 2022-02-05 00:47:17 -08:00
EncounterSlot1.cs Expose shiny potential value 2022-01-07 17:48:12 -08:00
EncounterSlot2.cs Expose shiny potential value 2022-01-07 17:48:12 -08:00
EncounterSlot3.cs Expose shiny potential value 2022-01-07 17:48:12 -08:00
EncounterSlot3PokeSpot.cs Rework EncounterCriteria to be ability indexed rather than direct ability (#3179) 2021-03-23 17:05:15 -07:00
EncounterSlot3Swarm.cs Mark EncounterSlot/Static types as immutable record types 2020-12-23 20:40:59 -08:00
EncounterSlot4.cs Expose shiny potential value 2022-01-07 17:48:12 -08:00
EncounterSlot5.cs Make EncounterArea parent reference protected, expose properties 2021-07-30 14:05:23 -07:00
EncounterSlot6AO.cs Add friendsafari to HA metadata permission 2021-12-26 23:05:25 -08:00
EncounterSlot6XY.cs Add friendsafari to HA metadata permission 2021-12-26 23:05:25 -08:00
EncounterSlot7.cs Enumerate ability permissions in encounter templates, misc updates (#3368) 2022-01-08 22:34:04 -08:00
EncounterSlot7b.cs Update PKHeX.Core abstractions with latest logic 2022-02-04 17:35:15 -08:00
EncounterSlot8.cs Rework match ranking to have multi levels of deferral 2021-08-15 09:28:47 -07:00
EncounterSlot8a.cs Add logic for PLA wild RNG correlation (#3443) 2022-02-20 17:59:48 -08:00
EncounterSlot8b.cs Expose shiny potential value 2022-01-07 17:48:12 -08:00
IGroundTypeTile.cs Change interface for method call to less restricted 2021-07-13 18:22:04 -07:00
IMagnetStatic.cs Xmldoc, minor tweaks 2020-11-27 11:51:02 -08:00
INumberedSlot.cs Xmldoc, minor tweaks 2020-11-27 11:51:02 -08:00