Changeset - 62d349a8db2f
[Not reviewed]
Jason Maltzen - 3 years ago 2021-08-27 21:58:31
jason@hiddenachievement.com
Fix the PaintMix export format - use the PracticalPaint internal names for ingredients, and remove excess whitespace. Also, don't export a recipe for colors that don't have a recipe.
1 file changed with 6 insertions and 2 deletions:
0 comments (0 inline, 0 general)
Models/PlayerProfile.cs
Show inline comments
...
 
@@ -649,2 +649,4 @@ namespace DesertPaintCodex.Models
 
                    {
 
                        if (recipe.Reagents.Count > 0)
 
                        {
 
                        string colorLine = $"{color.Name} : ";
...
 
@@ -652,3 +654,4 @@ namespace DesertPaintCodex.Models
 
                        {
 
                            colorLine += $" {ingredient.Name} {ingredient.Quantity}";
 
                                Reagent reagent = ReagentService.GetReagent(ingredient.Name);
 
                                colorLine += $" {reagent.PracticalPaintName} {ingredient.Quantity}";
 
                        }
...
 
@@ -657,5 +660,6 @@ namespace DesertPaintCodex.Models
 
                    }
 
                    }
 
                    else
 
                    {
 
                        // no recipe
 
                        // no recipe - skip
 
                    }
0 comments (0 inline, 0 general)