PKHeX/PKHeX.Core/Saves/Access/ISaveBlock8LA.cs
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

18 lines
540 B
C#

namespace PKHeX.Core;
/// <summary>
/// Interface for Accessing named blocks within a Generation 8 <see cref="GameVersion.PLA"/> save file.
/// </summary>
public interface ISaveBlock8LA
{
Box8 BoxInfo { get; }
Party8a PartyInfo { get; }
MyStatus8a MyStatus { get; }
PokedexSave8a PokedexSave { get; }
BoxLayout8a BoxLayout { get; }
MyItem8a Items { get; }
AdventureStart8a AdventureStart { get; }
LastSaved8a LastSaved { get; }
PlayTime8a Played { get; }
AreaSpawnerSet8a AreaSpawners { get; }
}