Files
CalamityModPublic/Buffs/DamageOverTime/ShellfishClaps.cs
T
Ozzatron 70afe537e7 Renamed a large number of buffs
For some buffs, I made changes to the name or description
2022-06-12 00:27:49 -04:00

26 lines
725 B
C#

using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.DamageOverTime
{
public class ShellfishClaps : ModBuff
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Shellfish Claps");
Description.SetDefault("Clamfest");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
}
public override void Update(NPC npc, ref int buffIndex)
{
if (npc.Calamity().shellfishVore < npc.buffTime[buffIndex])
npc.Calamity().shellfishVore = npc.buffTime[buffIndex];
npc.DelBuff(buffIndex);
buffIndex--;
}
}
}