2022-08-21 08:39:16 +00:00
|
|
|
using static PKHeX.Core.OriginMark;
|
|
|
|
|
2022-08-05 23:18:42 +00:00
|
|
|
namespace PKHeX.Core;
|
|
|
|
|
2022-08-21 08:39:16 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Displayed origin mark, indicating the group of games it originated from.
|
|
|
|
/// </summary>
|
2022-08-05 23:18:42 +00:00
|
|
|
public enum OriginMark
|
|
|
|
{
|
|
|
|
None,
|
|
|
|
|
|
|
|
Gen6Pentagon,
|
|
|
|
Gen7Clover,
|
|
|
|
Gen8Galar,
|
|
|
|
Gen8Trio,
|
|
|
|
Gen8Arc,
|
2022-11-25 01:42:17 +00:00
|
|
|
Gen9Paldea,
|
2022-08-05 23:18:42 +00:00
|
|
|
|
|
|
|
GameBoy,
|
|
|
|
GO,
|
|
|
|
LetsGo,
|
|
|
|
}
|
|
|
|
|
|
|
|
public static class OriginMarkUtil
|
|
|
|
{
|
|
|
|
public static OriginMark GetOriginMark(PKM pk)
|
|
|
|
{
|
|
|
|
// Specific Markings
|
|
|
|
if (pk.VC)
|
2022-08-21 08:39:16 +00:00
|
|
|
return GameBoy;
|
2022-08-05 23:18:42 +00:00
|
|
|
if (pk.GO)
|
2022-08-21 08:39:16 +00:00
|
|
|
return GO;
|
2022-08-05 23:18:42 +00:00
|
|
|
if (pk.LGPE)
|
2022-08-21 08:39:16 +00:00
|
|
|
return LetsGo;
|
2022-08-05 23:18:42 +00:00
|
|
|
|
|
|
|
// Lumped Generations
|
|
|
|
if (pk.Gen6)
|
2022-08-21 08:39:16 +00:00
|
|
|
return Gen6Pentagon;
|
2022-08-05 23:18:42 +00:00
|
|
|
if (pk.Gen7)
|
2022-08-21 08:39:16 +00:00
|
|
|
return Gen7Clover;
|
2022-08-05 23:18:42 +00:00
|
|
|
if (pk.SWSH)
|
2022-08-21 08:39:16 +00:00
|
|
|
return Gen8Galar;
|
2022-08-05 23:18:42 +00:00
|
|
|
if (pk.BDSP)
|
2022-08-21 08:39:16 +00:00
|
|
|
return Gen8Trio;
|
2022-08-05 23:18:42 +00:00
|
|
|
if (pk.LA)
|
2022-08-21 08:39:16 +00:00
|
|
|
return Gen8Arc;
|
2022-11-25 01:42:17 +00:00
|
|
|
if (pk.SV)
|
|
|
|
return Gen9Paldea;
|
2022-08-05 23:18:42 +00:00
|
|
|
|
2022-08-21 08:39:16 +00:00
|
|
|
return None;
|
2022-08-05 23:18:42 +00:00
|
|
|
}
|
|
|
|
}
|