PKHeX/PKHeX.Core/Legality/Encounters/EncounterTrade/EncounterTrade6.cs
Kurt 63580a2835 Minor tweaks
For BigEndian we don't have to invert the array access if we just iterate backwards :)
Fix xmldoc for gen1 trades ampersand
Add xmldoc for enc trade classes

No functional change.
2021-09-15 18:13:17 -07:00

36 lines
1.1 KiB
C#

namespace PKHeX.Core
{
/// <summary>
/// Generation 6 Trade Encounter
/// </summary>
/// <inheritdoc cref="EncounterTrade"/>
public sealed record EncounterTrade6 : EncounterTrade, IMemoryOT
{
public override int Generation => 6;
public override int Location => Locations.LinkTrade6NPC;
public int OT_Memory { get; set; }
public int OT_Intensity { get; set; }
public int OT_Feeling { get; set; }
public int OT_TextVar { get; set; }
public EncounterTrade6(GameVersion game, int m, int i, int f, int v) : base(game)
{
OT_Memory = m;
OT_Intensity = i;
OT_Feeling = f;
OT_TextVar = v;
}
protected override void ApplyDetails(ITrainerInfo sav, EncounterCriteria criteria, PKM pk)
{
base.ApplyDetails(sav, criteria, pk);
if (pk is IMemoryOT o)
{
o.OT_Memory = OT_Memory;
o.OT_Intensity = OT_Intensity;
o.OT_Feeling = OT_Feeling;
o.OT_TextVar = OT_TextVar;
}
}
}
}