2017-06-20 04:43:44 +00:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
|
|
|
|
/// <summary> Ribbons that originated in Generation 3 and were only present within that Generation. </summary>
|
2019-01-26 22:48:32 +00:00
|
|
|
|
public interface IRibbonSetOnly3
|
2017-06-20 04:43:44 +00:00
|
|
|
|
{
|
|
|
|
|
int RibbonCountG3Cool { get; set; }
|
|
|
|
|
int RibbonCountG3Beauty { get; set; }
|
|
|
|
|
int RibbonCountG3Cute { get; set; }
|
|
|
|
|
int RibbonCountG3Smart { get; set; }
|
|
|
|
|
int RibbonCountG3Tough { get; set; }
|
2018-02-03 20:42:06 +00:00
|
|
|
|
|
|
|
|
|
bool RibbonWorld { get; set; }
|
|
|
|
|
bool Unused1 { get; set; }
|
|
|
|
|
bool Unused2 { get; set; }
|
|
|
|
|
bool Unused3 { get; set; }
|
|
|
|
|
bool Unused4 { get; set; }
|
2017-06-20 04:43:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal static partial class RibbonExtensions
|
|
|
|
|
{
|
|
|
|
|
private static readonly string[] RibbonSetNamesOnly3 =
|
|
|
|
|
{
|
|
|
|
|
nameof(IRibbonSetOnly3.RibbonCountG3Cool), nameof(IRibbonSetOnly3.RibbonCountG3Beauty), nameof(IRibbonSetOnly3.RibbonCountG3Cute),
|
|
|
|
|
nameof(IRibbonSetOnly3.RibbonCountG3Smart), nameof(IRibbonSetOnly3.RibbonCountG3Tough),
|
2018-02-03 20:42:06 +00:00
|
|
|
|
|
|
|
|
|
nameof(IRibbonSetOnly3.RibbonWorld),
|
|
|
|
|
nameof(IRibbonSetOnly3.Unused1), nameof(IRibbonSetOnly3.Unused2),
|
|
|
|
|
nameof(IRibbonSetOnly3.Unused3), nameof(IRibbonSetOnly3.Unused4),
|
2017-06-20 04:43:44 +00:00
|
|
|
|
};
|
2018-07-27 02:34:27 +00:00
|
|
|
|
|
2020-08-09 05:55:44 +00:00
|
|
|
|
internal static bool ShouldHaveArtistRibbon(this IRibbonSetOnly3 set) => set.RibbonCountG3Cool == 4
|
|
|
|
|
|| set.RibbonCountG3Beauty == 4
|
|
|
|
|
|| set.RibbonCountG3Cute == 4
|
|
|
|
|
|| set.RibbonCountG3Smart == 4
|
|
|
|
|
|| set.RibbonCountG3Tough == 4;
|
2018-07-27 02:34:27 +00:00
|
|
|
|
|
2018-05-12 19:28:48 +00:00
|
|
|
|
internal static string[] RibbonNames(this IRibbonSetOnly3 _) => RibbonSetNamesOnly3;
|
2017-06-20 04:43:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|