mirror of
https://github.com/kwsch/PKHeX
synced 2025-03-01 13:57:22 +00:00
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.
23 lines
773 B
C#
23 lines
773 B
C#
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// Encounter Slot found in <see cref="GameVersion.Gen7"/>.
|
|
/// </summary>
|
|
/// <inheritdoc cref="EncounterSlot"/>
|
|
public sealed record EncounterSlot7 : EncounterSlot
|
|
{
|
|
public override int Generation => 7;
|
|
|
|
public EncounterSlot7(EncounterArea7 area, int species, int form, int min, int max) : base(area, species, form, min, max)
|
|
{
|
|
}
|
|
|
|
protected override void SetPINGA(PKM pk, EncounterCriteria criteria)
|
|
{
|
|
base.SetPINGA(pk, criteria);
|
|
pk.SetRandomEC();
|
|
}
|
|
|
|
protected override HiddenAbilityPermission IsHiddenAbilitySlot() => Area.Type == SlotType.SOS ? HiddenAbilityPermission.Possible : HiddenAbilityPermission.Never;
|
|
}
|
|
}
|