/// The tone slider. Hard-capped: no copy ever attacks the user's worth, only
/// their behaviour.
enum ToneLevel { Firm, Strict, DrillSergeant }

String toneLabel(ToneLevel value) {
  switch (value) {
    case ToneLevel.Firm:
      return "Firm";
    case ToneLevel.Strict:
      return "Strict";
    case ToneLevel.DrillSergeant:
      return "Drill Sergeant";
  }
}

ToneLevel getToneLevel(String? name) {
  for (ToneLevel value in ToneLevel.values) {
    if (value.name == name) {
      return value;
    }
  }
  return ToneLevel.Strict;
}
