2022-06-18 18:04:24 +00:00
|
|
|
|
namespace PKHeX.Core;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Generation 7 LGP/E Trade Encounter
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <inheritdoc cref="EncounterTrade"/>
|
|
|
|
|
public sealed record EncounterTrade7b : EncounterTrade
|
2020-08-21 23:35:49 +00:00
|
|
|
|
{
|
2022-06-18 18:04:24 +00:00
|
|
|
|
public override int Generation => 7;
|
|
|
|
|
public override int Location => Locations.LinkTrade6NPC;
|
|
|
|
|
public override Shiny Shiny => Shiny.Random;
|
2021-01-04 00:49:49 +00:00
|
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
|
public EncounterTrade7b(GameVersion game) : base(game) => IsNicknamed = false;
|
2022-02-05 01:35:15 +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
|
|
|
|
}
|
|
|
|
|
}
|