2022-06-18 18:04:24 +00:00
|
|
|
namespace PKHeX.Core;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Encounter Slot found in <see cref="GameVersion.GG"/>.
|
|
|
|
/// </summary>
|
|
|
|
/// <inheritdoc cref="EncounterSlot"/>
|
|
|
|
public sealed record EncounterSlot7b : EncounterSlot
|
2020-08-21 23:35:49 +00:00
|
|
|
{
|
2022-06-18 18:04:24 +00:00
|
|
|
public override int Generation => 7;
|
2020-08-30 17:23:22 +00:00
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
public EncounterSlot7b(EncounterArea7b area, int species, byte min, byte max) : base(area, species, 0, min, max)
|
|
|
|
{
|
|
|
|
}
|
2021-02-14 20:27:14 +00:00
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
protected override void ApplyDetails(ITrainerInfo sav, EncounterCriteria criteria, PKM pk)
|
|
|
|
{
|
|
|
|
base.ApplyDetails(sav, criteria, pk);
|
|
|
|
pk.SetRandomEC();
|
|
|
|
var pb = (PB7)pk;
|
|
|
|
pb.ResetHeight();
|
|
|
|
pb.ResetWeight();
|
|
|
|
pb.ResetCP();
|
2020-08-21 23:35:49 +00:00
|
|
|
}
|
2020-08-30 18:08:21 +00:00
|
|
|
}
|