public static void GenerateAnimalProducts() { string[] animals = TextGenerator.GetDefaultStrings("Text" + ProgramData.DirChar + "animal.txt"); foreach (string animal in animals) { Resource resource = new Resource(Resources[ResourceType.Meat]) { Type = animal + " Meat" }; resource.ShortName = resource.Type; if (!Resources.ContainsKey(resource.Type)) { Add(resource); } Resource boneResource = new Resource(Resources[ResourceType.Bones]) { Type = animal + " Bone" }; boneResource.ShortName = boneResource.Type; if (!Resources.ContainsKey(boneResource.Type)) { Add(boneResource); } } Resources.Remove(ResourceType.Meat); Resources.Remove(ResourceType.Bones); }