public string StringBuilder(RecipeData data) { string x = ""; for (int i = 0; i < data.recipe.Items.Count; i++) { Item item = data.GetItemByID(data.recipe.Items[i].ItemID); if (item != null) { int item_count = Inventory.Instance.CheckItemCount(data.recipe.Items[i].ItemID); if (item_count >= data.recipe.Items[i].Count * data.AmountSellMuiltplyer) { string value = item.Name + " " + "x" + data.recipe.Items[i].Count * data.AmountSellMuiltplyer + " \n"; x += data.ColorString("FFA500", value); } else { string value = item.Name + " " + "x" + data.recipe.Items[i].Count * data.AmountSellMuiltplyer + " \n"; x += data.ColorString("FFFFFF", value); } } } return(x); }