2022-08-16 04:04:30 +00:00
|
|
|
namespace PKHeX.Core;
|
2022-06-18 18:04:24 +00:00
|
|
|
|
|
|
|
/// <summary> Common Ribbons introduced in Generation 6 </summary>
|
|
|
|
public interface IRibbonSetCommon6
|
2017-06-20 04:43:44 +00:00
|
|
|
{
|
2022-06-18 18:04:24 +00:00
|
|
|
bool RibbonChampionKalos { get; set; }
|
|
|
|
bool RibbonChampionG6Hoenn { get; set; }
|
|
|
|
bool RibbonBestFriends { get; set; }
|
|
|
|
bool RibbonTraining { get; set; }
|
|
|
|
bool RibbonBattlerSkillful { get; set; }
|
|
|
|
bool RibbonBattlerExpert { get; set; }
|
2017-06-20 04:43:44 +00:00
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
bool RibbonContestStar { get; set; }
|
|
|
|
bool RibbonMasterCoolness { get; set; }
|
|
|
|
bool RibbonMasterBeauty { get; set; }
|
|
|
|
bool RibbonMasterCuteness { get; set; }
|
|
|
|
bool RibbonMasterCleverness { get; set; }
|
|
|
|
bool RibbonMasterToughness { get; set; }
|
|
|
|
}
|
2017-06-20 04:43:44 +00:00
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
internal static partial class RibbonExtensions
|
|
|
|
{
|
2022-08-16 04:04:30 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Checks if the <see cref="set"/> has all five contest stat ribbons true.
|
|
|
|
/// </summary>
|
2023-01-22 04:02:33 +00:00
|
|
|
public static bool HasAllContestRibbons(this IRibbonSetCommon6 set) => set is { RibbonMasterCoolness: true, RibbonMasterBeauty: true, RibbonMasterCuteness: true, RibbonMasterCleverness: true, RibbonMasterToughness: true };
|
2022-05-31 04:43:52 +00:00
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
internal static void CopyRibbonSetCommon6(this IRibbonSetCommon6 set, IRibbonSetCommon6 dest)
|
|
|
|
{
|
|
|
|
dest.RibbonChampionKalos = set.RibbonChampionKalos;
|
|
|
|
dest.RibbonChampionG6Hoenn = set.RibbonChampionG6Hoenn;
|
|
|
|
dest.RibbonBestFriends = set.RibbonBestFriends;
|
|
|
|
dest.RibbonTraining = set.RibbonTraining;
|
|
|
|
dest.RibbonBattlerSkillful = set.RibbonBattlerSkillful;
|
|
|
|
dest.RibbonBattlerExpert = set.RibbonBattlerExpert;
|
|
|
|
dest.RibbonContestStar = set.RibbonContestStar;
|
|
|
|
dest.RibbonMasterCoolness = set.RibbonMasterCoolness;
|
|
|
|
dest.RibbonMasterBeauty = set.RibbonMasterBeauty;
|
|
|
|
dest.RibbonMasterCuteness = set.RibbonMasterCuteness;
|
|
|
|
dest.RibbonMasterCleverness = set.RibbonMasterCleverness;
|
|
|
|
dest.RibbonMasterToughness = set.RibbonMasterToughness;
|
2017-06-20 04:43:44 +00:00
|
|
|
}
|
|
|
|
}
|