Add default weight value for clothing

This commit is contained in:
Chomp 2022-12-01 13:09:28 +00:00
parent 76112630db
commit 5831705f28
2 changed files with 6 additions and 6 deletions

View File

@ -49,15 +49,15 @@ public class Appearance
{ {
public Appearance() public Appearance()
{ {
body = new List<string>(); body = new Dictionary<string, int>();
feet = new List<string>(); feet = new Dictionary<string, int>();
hands = new List<string>(); hands = new List<string>();
head = new List<string>(); head = new List<string>();
voice = new List<string>(); voice = new List<string>();
} }
public List<string> body { get; set; } public Dictionary<string, int> body { get; set; }
public List<string> feet { get; set; } public Dictionary<string, int> feet { get; set; }
public List<string> hands { get; set; } public List<string> hands { get; set; }
public List<string> head { get; set; } public List<string> head { get; set; }
public List<string> voice { get; set; } public List<string> voice { get; set; }

View File

@ -149,9 +149,9 @@ namespace Generator
private static void AddVisualAppearanceItems(Bot botToUpdate, Datum rawBot) private static void AddVisualAppearanceItems(Bot botToUpdate, Datum rawBot)
{ {
botToUpdate.appearance.head.AddUnique(rawBot.Customization.Head); 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.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) private static void AddName(Bot botToUpdate, Datum rawBot)