Skip to content

Commit

Permalink
Merge pull request #24 from nanokortney/main
Browse files Browse the repository at this point in the history
added logic for article for classnames
  • Loading branch information
WorkingRobot authored Jul 29, 2024
2 parents 1bc7c46 + cbba9cc commit a9b85bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Craftimizer/Windows/RecipeNote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

1 comment on commit a9b85bb

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: a9b85bb Previous: 1622902 Ratio
Craftimizer.Benchmark.Bench.Solve(State: 4E513A96, Config: 17FB7082) 71719681.66666667 ns (± 718669.2264374994)
Craftimizer.Benchmark.Bench.Solve(State: 60FA0E60, Config: 17FB7082) 98590654.44444445 ns (± 440341.2464803292)

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.