2020-08-21 23:35:49 +00:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
2021-09-16 01:13:17 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Generation 7 LGP/E Trade Encounter
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <inheritdoc cref="EncounterTrade"/>
|
2020-12-24 08:06:40 +00:00
|
|
|
|
public sealed record EncounterTrade7b : EncounterTrade
|
2020-08-21 23:35:49 +00:00
|
|
|
|
{
|
2020-08-30 22:35:59 +00:00
|
|
|
|
public override int Generation => 7;
|
2021-05-19 00:14:17 +00:00
|
|
|
|
public override int Location => Locations.LinkTrade6NPC;
|
2021-01-04 00:49:49 +00:00
|
|
|
|
|
|
|
|
|
public EncounterTrade7b(GameVersion game) : base(game)
|
|
|
|
|
{
|
|
|
|
|
Shiny = Shiny.Random;
|
|
|
|
|
IsNicknamed = false;
|
|
|
|
|
}
|
2022-02-05 01:35:15 +00:00
|
|
|
|
|
|
|
|
|
protected override void ApplyDetails(ITrainerInfo sav, EncounterCriteria criteria, PKM pk)
|
|
|
|
|
{
|
|
|
|
|
base.ApplyDetails(sav, criteria, pk);
|
2022-02-25 21:52:50 +00:00
|
|
|
|
pk.SetRandomEC();
|
|
|
|
|
var pb = (PB7)pk;
|
|
|
|
|
pb.ResetHeight();
|
|
|
|
|
pb.ResetWeight();
|
|
|
|
|
pb.ResetCP();
|
2022-02-05 01:35:15 +00:00
|
|
|
|
}
|
2020-08-21 23:35:49 +00:00
|
|
|
|
}
|
|
|
|
|
}
|