2019-11-19 01:00:57 +00:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Ribbon Indexes for Generation 8
|
|
|
|
|
/// </summary>
|
|
|
|
|
public enum RibbonIndex
|
|
|
|
|
{
|
|
|
|
|
ChampionKalos,
|
2021-04-10 19:09:43 +00:00
|
|
|
|
ChampionG3,
|
2019-11-19 01:00:57 +00:00
|
|
|
|
ChampionSinnoh,
|
|
|
|
|
BestFriends,
|
|
|
|
|
Training,
|
|
|
|
|
BattlerSkillful,
|
|
|
|
|
BattlerExpert,
|
|
|
|
|
Effort,
|
|
|
|
|
Alert,
|
|
|
|
|
Shock,
|
|
|
|
|
Downcast,
|
|
|
|
|
Careless,
|
|
|
|
|
Relax,
|
|
|
|
|
Snooze,
|
|
|
|
|
Smile,
|
|
|
|
|
Gorgeous,
|
|
|
|
|
Royal,
|
|
|
|
|
GorgeousRoyal,
|
|
|
|
|
Artist,
|
|
|
|
|
Footprint,
|
|
|
|
|
Record,
|
|
|
|
|
Legend,
|
|
|
|
|
Country,
|
|
|
|
|
National,
|
|
|
|
|
Earth,
|
|
|
|
|
World,
|
|
|
|
|
Classic,
|
|
|
|
|
Premier,
|
|
|
|
|
Event,
|
|
|
|
|
Birthday,
|
|
|
|
|
Special,
|
|
|
|
|
Souvenir,
|
|
|
|
|
Wishing,
|
|
|
|
|
ChampionBattle,
|
|
|
|
|
ChampionRegional,
|
|
|
|
|
ChampionNational,
|
|
|
|
|
ChampionWorld,
|
2021-02-10 21:34:49 +00:00
|
|
|
|
CountMemoryContest,
|
|
|
|
|
CountMemoryBattle,
|
2019-11-19 01:00:57 +00:00
|
|
|
|
ChampionG6Hoenn,
|
|
|
|
|
ContestStar,
|
|
|
|
|
MasterCoolness,
|
|
|
|
|
MasterBeauty,
|
|
|
|
|
MasterCuteness,
|
|
|
|
|
MasterCleverness,
|
|
|
|
|
MasterToughness,
|
|
|
|
|
ChampionAlola,
|
|
|
|
|
BattleRoyale,
|
|
|
|
|
BattleTreeGreat,
|
|
|
|
|
BattleTreeMaster,
|
|
|
|
|
ChampionGalar,
|
|
|
|
|
TowerMaster,
|
|
|
|
|
MasterRank,
|
|
|
|
|
|
|
|
|
|
MarkLunchtime,
|
|
|
|
|
MarkSleepyTime,
|
|
|
|
|
MarkDusk,
|
|
|
|
|
MarkDawn,
|
|
|
|
|
MarkCloudy,
|
|
|
|
|
MarkRainy,
|
|
|
|
|
MarkStormy,
|
|
|
|
|
MarkSnowy,
|
|
|
|
|
MarkBlizzard,
|
|
|
|
|
MarkDry,
|
|
|
|
|
MarkSandstorm,
|
|
|
|
|
MarkMisty,
|
|
|
|
|
MarkDestiny,
|
|
|
|
|
MarkFishing,
|
|
|
|
|
MarkCurry,
|
|
|
|
|
MarkUncommon,
|
|
|
|
|
MarkRare,
|
|
|
|
|
MarkRowdy,
|
|
|
|
|
MarkAbsentMinded,
|
|
|
|
|
MarkJittery,
|
|
|
|
|
MarkExcited,
|
|
|
|
|
MarkCharismatic,
|
|
|
|
|
MarkCalmness,
|
|
|
|
|
MarkIntense,
|
|
|
|
|
MarkZonedOut,
|
|
|
|
|
MarkJoyful,
|
|
|
|
|
MarkAngry,
|
|
|
|
|
MarkSmiley,
|
|
|
|
|
MarkTeary,
|
|
|
|
|
MarkUpbeat,
|
|
|
|
|
MarkPeeved,
|
|
|
|
|
MarkIntellectual,
|
|
|
|
|
MarkFerocious,
|
|
|
|
|
MarkCrafty,
|
|
|
|
|
MarkScowling,
|
|
|
|
|
MarkKindly,
|
|
|
|
|
MarkFlustered,
|
|
|
|
|
MarkPumpedUp,
|
|
|
|
|
MarkZeroEnergy,
|
|
|
|
|
MarkPrideful,
|
|
|
|
|
MarkUnsure,
|
|
|
|
|
MarkHumble,
|
|
|
|
|
MarkThorny,
|
|
|
|
|
MarkVigor,
|
|
|
|
|
MarkSlump,
|
2021-11-20 02:23:49 +00:00
|
|
|
|
|
|
|
|
|
Pioneer,
|
2021-11-26 00:27:02 +00:00
|
|
|
|
TwinklingStar,
|
2019-11-19 01:00:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class RibbonIndexExtensions
|
|
|
|
|
{
|
2019-11-19 01:37:38 +00:00
|
|
|
|
public static bool GetRibbonIndex(this IRibbonIndex x, RibbonIndex r) => x.GetRibbon((int)r);
|
|
|
|
|
public static void SetRibbonIndex(this IRibbonIndex x, RibbonIndex r, bool value = true) => x.SetRibbon((int)r, value);
|
2021-07-26 21:28:05 +00:00
|
|
|
|
|
|
|
|
|
public static AreaWeather8 GetWeather8(this RibbonIndex x) => x switch
|
|
|
|
|
{
|
|
|
|
|
RibbonIndex.MarkCloudy => AreaWeather8.Overcast,
|
|
|
|
|
RibbonIndex.MarkRainy => AreaWeather8.Raining,
|
|
|
|
|
RibbonIndex.MarkStormy => AreaWeather8.Thunderstorm,
|
|
|
|
|
RibbonIndex.MarkDry => AreaWeather8.Intense_Sun,
|
|
|
|
|
RibbonIndex.MarkSnowy => AreaWeather8.Snowing,
|
|
|
|
|
RibbonIndex.MarkBlizzard => AreaWeather8.Snowstorm,
|
|
|
|
|
RibbonIndex.MarkSandstorm => AreaWeather8.Sandstorm,
|
|
|
|
|
RibbonIndex.MarkMisty => AreaWeather8.Heavy_Fog,
|
|
|
|
|
_ => AreaWeather8.None,
|
|
|
|
|
};
|
2019-11-19 01:00:57 +00:00
|
|
|
|
}
|
|
|
|
|
}
|