added logic for article for classnames

This just adds logic that I think will work to correctly use "an" in front of "Armorer" and "Alchemist" in the recipe note window
This commit is contained in:
nanokortney
2024-07-28 11:45:53 -05:00
parent 83e7ca8cf1
commit cbba9ccaf7
+5 -1
View File
@@ -503,7 +503,11 @@ public sealed unsafe class RecipeNote : Window, IDisposable
break; break;
case CraftableStatus.WrongClassJob: case CraftableStatus.WrongClassJob:
{ {
ImGuiUtils.TextCentered($"You are not a {RecipeData.ClassJob.GetName().ToLowerInvariant()}."); var fullClassName = RecipeData.ClassJob.GetName().ToLowerInvariant();
var classArticle = "a";
if (fullClassName == "Alchemist" || fullClassName == "Armorer")
classArticle = "an";
ImGuiUtils.TextCentered($"You are not {classArticle} {fullClassName}.");
var gearsetId = GetGearsetForJob(RecipeData.ClassJob); var gearsetId = GetGearsetForJob(RecipeData.ClassJob);
if (gearsetId.HasValue) if (gearsetId.HasValue)
{ {