public static SDV.Object FormatAsAnimalAvailableForPurchase( SDV.Farm farm, string name, string displayName, string[] types, string[] buildings) { string type; RequiredBuildingIsBuilt(farm, buildings, out type); var @object = new SDV.Object(100, 1, price: (int)Math.Ceiling(FarmAnimal.GetCheapestPrice(types.ToList()) / 2.0)) { Type = type, displayName = displayName }; @object.Name = name; return(@object); }