Tweaks and fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user