diff --git a/Common.Models/Output/Output.cs b/Common.Models/Output/Output.cs index 7490163..587a75e 100644 --- a/Common.Models/Output/Output.cs +++ b/Common.Models/Output/Output.cs @@ -49,15 +49,15 @@ public class Appearance { public Appearance() { - body = new List(); - feet = new List(); + body = new Dictionary(); + feet = new Dictionary(); hands = new List(); head = new List(); voice = new List(); } - public List body { get; set; } - public List feet { get; set; } + public Dictionary body { get; set; } + public Dictionary feet { get; set; } public List hands { get; set; } public List head { get; set; } public List voice { get; set; } diff --git a/Generator/BaseBotGenerator.cs b/Generator/BaseBotGenerator.cs index c745bc3..799cac6 100644 --- a/Generator/BaseBotGenerator.cs +++ b/Generator/BaseBotGenerator.cs @@ -149,9 +149,9 @@ namespace Generator private static void AddVisualAppearanceItems(Bot botToUpdate, Datum rawBot) { botToUpdate.appearance.head.AddUnique(rawBot.Customization.Head); - botToUpdate.appearance.body.AddUnique(rawBot.Customization.Body); + botToUpdate.appearance.body.AddUnique(rawBot.Customization.Body, 1); botToUpdate.appearance.hands.AddUnique(rawBot.Customization.Hands); - botToUpdate.appearance.feet.AddUnique(rawBot.Customization.Feet); + botToUpdate.appearance.feet.AddUnique(rawBot.Customization.Feet, 1); } private static void AddName(Bot botToUpdate, Datum rawBot)