mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-02 16:59:15 +00:00
aaa69eac15
been like this since mid 2016 this ribbon can be obtained in either Hoenn or Kanto within Gen3 https://bulbapedia.bulbagarden.net/wiki/List_of_Ribbons_in_the_games#League_Ribbons
30 lines
908 B
C#
30 lines
908 B
C#
namespace PKHeX.Core
|
|
{
|
|
/// <summary> Common Ribbons introduced in Generation 3 </summary>
|
|
public interface IRibbonSetCommon3
|
|
{
|
|
bool RibbonChampionG3 { get; set; }
|
|
bool RibbonArtist { get; set; }
|
|
bool RibbonEffort { get; set; }
|
|
}
|
|
|
|
internal static partial class RibbonExtensions
|
|
{
|
|
private static readonly string[] RibbonSetNamesCommon3 =
|
|
{
|
|
nameof(IRibbonSetCommon3.RibbonChampionG3), nameof(IRibbonSetCommon3.RibbonArtist), nameof(IRibbonSetCommon3.RibbonEffort)
|
|
};
|
|
|
|
internal static bool[] RibbonBits(this IRibbonSetCommon3 set)
|
|
{
|
|
return new[]
|
|
{
|
|
set.RibbonChampionG3,
|
|
set.RibbonArtist,
|
|
set.RibbonEffort,
|
|
};
|
|
}
|
|
|
|
internal static string[] RibbonNames(this IRibbonSetCommon3 _) => RibbonSetNamesCommon3;
|
|
}
|
|
}
|