private static string GetProgress(MeritGroup group, int collected, int total) => CanShowProgress(group) ? $" (`{RangeF.Convert(0, total, 0.0f, 100.0f, collected)}%`)" : "";
// determines if the % of completion when viewing categories is displayed. private static bool CanShowProgress(MeritGroup group) => group switch {
public static IEnumerable <Merit> GetMerits(MeritGroup group) => Merits.Values.Where(x => x.Group == group);