mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-21 09:53:14 +00:00
267613270e
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.
19 lines
565 B
C#
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();
|
|
}
|
|
}
|
|
}
|