willcocobo
The Destroyer
i'm trying to make a consumable waffle item that gives you the well fed buff, please provide me with the holy waffle code
using System;
using System.IO;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Modding2.Items.Buffs
{
public class Waffle : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("holy Waffle");
Tooltip.SetDefault("Grants WellFed Buff");
}
public override void SetDefaults()
{
item.width = 12;
item.height = 26;
item.maxStack = 99;
item.value = 500;
item.rare = 3;
item.useAnimation = 30;
item.useTime = 30;
item.useStyle = 4;
item.consumable = true;
}
public override bool UseItem(Player player)
{
player.AddBuff(BuffID.WellFed, 7200); // this about 1 minute
return true;
}
}
}
you will have to change some stuff around to fit your mod