public Cut(CutLocation location, Severity severity, Action <Fighter> consequence) { Location = location; Extent = severity; Consequence = consequence; Description = $"A {Extent.ToString().ToLower()} cut {getLocationDescription(Location)}."; }
public static string getLocationDescription(CutLocation location) { StringBuilder sb = new StringBuilder(); foreach (Char ch in location.ToString()) { if (Char.IsUpper(ch)) { sb.Append(' '); sb.Append(ch); } else { sb.Append(ch); } } return(sb.ToString().ToLower().Trim()); }