mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 20:43:07 +00:00
03182ebd3d
Adds support for Scarlet & Violet. Co-Authored-By: SciresM <8676005+SciresM@users.noreply.github.com> Co-Authored-By: Matt <17801814+sora10pls@users.noreply.github.com> Co-Authored-By: Lusamine <30205550+Lusamine@users.noreply.github.com>
26 lines
790 B
C#
26 lines
790 B
C#
using static PKHeX.Core.RibbonIndex;
|
|
|
|
namespace PKHeX.Core;
|
|
|
|
/// <summary>
|
|
/// Parsing logic for <see cref="IRibbonSetCommon9"/>.
|
|
/// </summary>
|
|
public static class RibbonVerifierCommon9
|
|
{
|
|
public static void Parse(this IRibbonSetCommon9 r, RibbonVerifierArguments args, ref RibbonResultList list)
|
|
{
|
|
var evos = args.History;
|
|
if (r.RibbonChampionPaldea && !args.History.HasVisitedGen9)
|
|
list.Add(ChampionPaldea);
|
|
if (r.RibbonOnceInALifetime) // Flag it.
|
|
list.Add(OnceInALifetime);
|
|
}
|
|
|
|
public static void ParseEgg(this IRibbonSetCommon9 r, ref RibbonResultList list)
|
|
{
|
|
if (r.RibbonChampionPaldea)
|
|
list.Add(ChampionPaldea);
|
|
if (r.RibbonOnceInALifetime)
|
|
list.Add(OnceInALifetime);
|
|
}
|
|
}
|