From cbba9ccaf7a9c01f12ea8606dd54f23f9fb6de1d Mon Sep 17 00:00:00 2001 From: nanokortney <25440687+nanokortney@users.noreply.github.com> Date: Sun, 28 Jul 2024 11:45:53 -0500 Subject: [PATCH] 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 --- Craftimizer/Windows/RecipeNote.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Craftimizer/Windows/RecipeNote.cs b/Craftimizer/Windows/RecipeNote.cs index 9908d90..be738f0 100644 --- a/Craftimizer/Windows/RecipeNote.cs +++ b/Craftimizer/Windows/RecipeNote.cs @@ -503,7 +503,11 @@ private void DrawCharacterStats() break; 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); if (gearsetId.HasValue) {