PKHeX/PKHeX.Core/Legality/Encounters/EncounterStatic/EncounterStatic7b.cs
Kurt 267613270e Generate slots/static per correlation if appropriate
Relocate the SetRandomEC at the tail end of the generator into the specific classes that set EC, so that our correlation generators don't have their EC overwritten at the end.
2021-02-14 12:27:14 -08:00

19 lines
565 B
C#

namespace PKHeX.Core
{
/// <summary>
/// Generation 7 Static Encounter (<see cref="GameVersion.GG"/>
/// </summary>
/// <inheritdoc cref="EncounterStatic"/>
public sealed record EncounterStatic7b : EncounterStatic
{
public override int Generation => 7;
public EncounterStatic7b(GameVersion game) : base(game) { }
protected override void ApplyDetails(ITrainerInfo sav, EncounterCriteria criteria, PKM pk)
{
base.ApplyDetails(sav, criteria, pk);
pk.SetRandomEC();
}
}
}