mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-01 00:09:14 +00:00
9b178fefe2
Move form-info logic from FormConverter to AltFormInfo; now FormConverter is entirely form=>string[] Add a bunch of xmldoc Make pogo no-end-date cmp agaisnt UTCnow rather than local now.
42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// Generation 6 Static Encounter
|
|
/// </summary>
|
|
/// <inheritdoc cref="EncounterStatic"/>
|
|
public sealed class EncounterStatic6 : EncounterStatic, IContestStats
|
|
{
|
|
public override int Generation => 6;
|
|
|
|
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; }
|
|
|
|
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;
|
|
}
|
|
|
|
protected override void ApplyDetails(ITrainerInfo sav, EncounterCriteria criteria, PKM pk)
|
|
{
|
|
base.ApplyDetails(sav, criteria, pk);
|
|
var pk6 = (PK6)pk;
|
|
this.CopyContestStatsTo(pk6);
|
|
pk6.SetRandomMemory6();
|
|
}
|
|
}
|
|
}
|