diff --git a/Models/PlayerProfile.cs b/Models/PlayerProfile.cs --- a/Models/PlayerProfile.cs +++ b/Models/PlayerProfile.cs @@ -647,17 +647,21 @@ namespace DesertPaintCodex.Models { if (recipeDict.TryGetValue(color.Name, out PaintRecipe? recipe)) { - string colorLine = $"{color.Name} : "; - foreach (PaintRecipe.ReagentQuantity ingredient in recipe.Reagents) + if (recipe.Reagents.Count > 0) { - colorLine += $" {ingredient.Name} {ingredient.Quantity}"; + string colorLine = $"{color.Name} :"; + foreach (PaintRecipe.ReagentQuantity ingredient in recipe.Reagents) + { + Reagent reagent = ReagentService.GetReagent(ingredient.Name); + colorLine += $" {reagent.PracticalPaintName} {ingredient.Quantity}"; + } + colorLine += $" - #{color.Red:X2}{color.Green:X2}{color.Blue:X2}"; + writer.WriteLine(colorLine); } - colorLine += $" - #{color.Red:X2}{color.Green:X2}{color.Blue:X2}"; - writer.WriteLine(colorLine); } else { - // no recipe + // no recipe - skip } } }