MPDamageCap
Terrarian
I am having trouble making a beam weapon that grants a buff whenever it is being used. I tried adding this
override bool UseItem(Item item, Player player)
{
player.AddBuff(mod.BuffType("TestBuff"), 6000, false);
}
But I get a "no suitable method found to override". I'm not great at coding so I really don't know why this wouldn't work.
override bool UseItem(Item item, Player player)
{
player.AddBuff(mod.BuffType("TestBuff"), 6000, false);
}
But I get a "no suitable method found to override". I'm not great at coding so I really don't know why this wouldn't work.