2020-08-22 18:59:43 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
|
|
|
|
public sealed class EncounterStatic6 : EncounterStatic, IContestStats
|
|
|
|
|
{
|
2020-08-30 23:10:24 +00:00
|
|
|
|
public override int Generation => 6;
|
|
|
|
|
|
2020-08-22 18:59:43 +00:00
|
|
|
|
internal IReadOnlyList<int> Contest { set => this.SetContestStats(value); }
|
|
|
|
|
public int CNT_Cool { get; set; }
|
|
|
|
|
public int CNT_Beauty { get; set; }
|
|
|
|
|
public int CNT_Cute { get; set; }
|
|
|
|
|
public int CNT_Smart { get; set; }
|
|
|
|
|
public int CNT_Tough { get; set; }
|
|
|
|
|
public int CNT_Sheen { get; set; }
|
2020-08-31 02:24:24 +00:00
|
|
|
|
|
|
|
|
|
protected override bool IsMatchLocation(PKM pkm)
|
|
|
|
|
{
|
|
|
|
|
if (base.IsMatchLocation(pkm))
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
|
|
if (Species != (int) Core.Species.Pikachu)
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
// Cosplay Pikachu is given from multiple locations
|
|
|
|
|
var loc = pkm.Met_Location;
|
|
|
|
|
return loc == 180 || loc == 186 || loc == 194;
|
|
|
|
|
}
|
2020-09-13 21:40:10 +00:00
|
|
|
|
|
|
|
|
|
protected override void ApplyDetails(ITrainerInfo sav, EncounterCriteria criteria, PKM pk)
|
|
|
|
|
{
|
|
|
|
|
base.ApplyDetails(sav, criteria, pk);
|
|
|
|
|
var pk6 = (PK6)pk;
|
|
|
|
|
this.CopyContestStatsTo(pk6);
|
|
|
|
|
pk6.SetRandomMemory6();
|
|
|
|
|
}
|
2020-08-22 18:59:43 +00:00
|
|
|
|
}
|
|
|
|
|
}
|