Tweaks and fixes

This commit is contained in:
2025-07-05 18:27:42 +02:00
parent d57076374f
commit 83f6a183e3
4 changed files with 33 additions and 4 deletions

View File

@@ -46,4 +46,22 @@ public enum Statistic : byte
/// This is not part of base stats, but is a temporary stat boost.
/// </summary>
Accuracy,
}
/// <summary>
/// Helper class for <see cref="Statistic"/>.
/// </summary>
public static class StatisticHelper
{
/// <summary>
/// Gets all statistics that are defined in the game, including Evasion and Accuracy.
/// </summary>
public static IEnumerable<Statistic> GetAllStatistics() => Enum.GetValues(typeof(Statistic)).Cast<Statistic>();
/// <summary>
/// Gets the standard statistics that are visible in the Pokémon's base stats. Excludes Evasion and Accuracy.s
/// </summary>
public static IEnumerable<Statistic> GetStandardStatistics() =>
Enum.GetValues(typeof(Statistic)).Cast<Statistic>()
.Where(stat => stat != Statistic.Evasion && stat != Statistic.Accuracy);
}