internal static void CopyRibbonSetCommon7(this IRibbonSetCommon7 set, IRibbonSetCommon7 dest) { dest.RibbonChampionAlola = set.RibbonChampionAlola; dest.RibbonBattleRoyale = set.RibbonBattleRoyale; dest.RibbonBattleTreeGreat = set.RibbonBattleTreeGreat; dest.RibbonBattleTreeMaster = set.RibbonBattleTreeMaster; }
internal static bool[] RibbonBits(this IRibbonSetCommon7 set) { return(new[] { set.RibbonChampionAlola, set.RibbonBattleRoyale, set.RibbonBattleTreeGreat, set.RibbonBattleTreeMaster, }); }
private static IEnumerable <RibbonResult> GetInvalidRibbons7Any(PKM pkm, IRibbonSetCommon7 s7) { if (!IsAllowedBattleFrontier(pkm.Species)) { if (s7.RibbonBattleRoyale) { yield return(new RibbonResult(nameof(s7.RibbonBattleRoyale))); } if (s7.RibbonBattleTreeGreat) { yield return(new RibbonResult(nameof(s7.RibbonBattleTreeGreat))); } if (s7.RibbonBattleTreeMaster) { yield return(new RibbonResult(nameof(s7.RibbonBattleTreeMaster))); } } }
internal static string[] RibbonNames(this IRibbonSetCommon7 _) => RibbonSetNamesCommon7;