public override void Update(Player player, ref int buffIndex) { FoodBuffHandler mp = player.GetModPlayer <FoodBuffHandler>(); foreach (Item item in mp.Consumed.Where(n => n.modItem is Ingredient)) { (item.modItem as Ingredient).BuffEffects(player, mp.Multiplier); } }
public override void ModifyBuffTip(ref string tip, ref int rare) { FoodBuffHandler mp = Main.LocalPlayer.GetModPlayer <FoodBuffHandler>(); foreach (Item item in mp.Consumed.Where(n => n.modItem is Ingredient)) { tip += (item.modItem as Ingredient).ItemTooltip + "\n"; } }