diff --git a/HRServer-Exporter/HRServer/Models/Horse.cs b/HRServer-Exporter/HRServer/Models/Horse.cs index e5e2193..e57516f 100644 --- a/HRServer-Exporter/HRServer/Models/Horse.cs +++ b/HRServer-Exporter/HRServer/Models/Horse.cs @@ -36,7 +36,21 @@ namespace HRServer.Models { WriteIndented = true // Aktiviert die formatierte Ausgabe }; - + // Create an example genetics set for color + HorseGenetics example = new HorseGenetics(); + // Check any horse whether all colors are loaded + if (Horses.First().Value.Genetics.Colors.Count < example.Colors.Count) + { + // Add missing colors to all horses + foreach (var horse in Horses) + { + foreach (var color in example.Colors) + { + if (!horse.Value.Genetics.Colors.ContainsKey(color.Key)) + horse.Value.Genetics.Colors[color.Key] = color.Value; + } + } + } // JSON-Datei speichern var json = JsonSerializer.Serialize(Horses, options); File.WriteAllText($"{HorseDataPath}.json", json); diff --git a/HRServer-Exporter/HRServer/obj/Debug/net8.0/HRServer.AssemblyInfo.cs b/HRServer-Exporter/HRServer/obj/Debug/net8.0/HRServer.AssemblyInfo.cs index c8d8d9d..3416a1f 100644 --- a/HRServer-Exporter/HRServer/obj/Debug/net8.0/HRServer.AssemblyInfo.cs +++ b/HRServer-Exporter/HRServer/obj/Debug/net8.0/HRServer.AssemblyInfo.cs @@ -14,7 +14,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("HRServer")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+dceb598b52dfe3fc24772a14d69d8799841f2ed6")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6ea0e7bc553819083e5e54f233074238b58ccf0f")] [assembly: System.Reflection.AssemblyProductAttribute("HRServer")] [assembly: System.Reflection.AssemblyTitleAttribute("HRServer")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/HRServer-Exporter/HRServer/obj/Debug/net8.0/HRServer.AssemblyInfoInputs.cache b/HRServer-Exporter/HRServer/obj/Debug/net8.0/HRServer.AssemblyInfoInputs.cache index af861bd..41e4261 100644 --- a/HRServer-Exporter/HRServer/obj/Debug/net8.0/HRServer.AssemblyInfoInputs.cache +++ b/HRServer-Exporter/HRServer/obj/Debug/net8.0/HRServer.AssemblyInfoInputs.cache @@ -1 +1 @@ -67964aab995a10c5597615e52369d5f3249b51e0fd1252048dd4c11c7b480717 +de2d1f7d22a7dee4b24f63858221c57025d9bf1747e68570e0f4fe7cc3ef3499