PKHeX/PKHeX.Core/Legality/Verifiers/Ribbons/RibbonVerifierCommon9.cs
Kurt 03182ebd3d Update 22.11.24
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>
2022-11-24 17:42:17 -08:00

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);
}
}