PKHeX/PKHeX.Core/PKM/Enums/OriginMark.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

52 lines
956 B
C#

using static PKHeX.Core.OriginMark;
namespace PKHeX.Core;
/// <summary>
/// Displayed origin mark, indicating the group of games it originated from.
/// </summary>
public enum OriginMark
{
None,
Gen6Pentagon,
Gen7Clover,
Gen8Galar,
Gen8Trio,
Gen8Arc,
Gen9Paldea,
GameBoy,
GO,
LetsGo,
}
public static class OriginMarkUtil
{
public static OriginMark GetOriginMark(PKM pk)
{
// Specific Markings
if (pk.VC)
return GameBoy;
if (pk.GO)
return GO;
if (pk.LGPE)
return LetsGo;
// Lumped Generations
if (pk.Gen6)
return Gen6Pentagon;
if (pk.Gen7)
return Gen7Clover;
if (pk.SWSH)
return Gen8Galar;
if (pk.BDSP)
return Gen8Trio;
if (pk.LA)
return Gen8Arc;
if (pk.SV)
return Gen9Paldea;
return None;
}
}