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