2020-07-18 20:36:30 +00:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
2020-12-24 08:06:40 +00:00
|
|
|
|
public sealed record EncounterTrade6 : EncounterTrade, IMemoryOT
|
2020-07-18 20:36:30 +00:00
|
|
|
|
{
|
2020-08-30 22:35:59 +00:00
|
|
|
|
public override int Generation => 6;
|
2021-05-19 00:14:17 +00:00
|
|
|
|
public override int Location => Locations.LinkTrade6NPC;
|
2020-08-01 00:25:14 +00:00
|
|
|
|
public int OT_Memory { get; set; }
|
|
|
|
|
public int OT_Intensity { get; set; }
|
|
|
|
|
public int OT_Feeling { get; set; }
|
|
|
|
|
public int OT_TextVar { get; set; }
|
2020-07-18 20:36:30 +00:00
|
|
|
|
|
2021-01-04 00:49:49 +00:00
|
|
|
|
public EncounterTrade6(GameVersion game, int m, int i, int f, int v) : base(game)
|
2020-07-18 20:36:30 +00:00
|
|
|
|
{
|
|
|
|
|
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);
|
2020-08-01 00:25:14 +00:00
|
|
|
|
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;
|
|
|
|
|
}
|
2020-07-18 20:36:30 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|