Client purchases in the replica test; multipliers keep their small x

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
NiemandKG
2026-11-12 02:00:34 +06:00
parent d61167e22b
commit ae2bc83c24
2 changed files with 39 additions and 1 deletions

View File

@ -119,6 +119,7 @@ namespace GrassCutter
}
}
static string Cap(string s) => string.IsNullOrEmpty(s) ? s : char.ToUpper(s[0], Loc.Culture) + s.Substring(1);
/// <summary>A capital to start with, except on a multiplier ("x1.6 speed", not "X1.6").</summary>
static string Cap(string s) => string.IsNullOrEmpty(s) || (s.Length > 1 && s[0] == 'x' && char.IsDigit(s[1])) ? s : char.ToUpper(s[0], Loc.Culture) + s.Substring(1);
}
}