Files
CalamityModPublic/Buffs/StatDebuffs/TemporalSadness.cs
T
2019-11-27 11:45:35 -05:00

27 lines
709 B
C#

using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatDebuffs
{
public class TemporalSadness : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Temporal Sadness");
Description.SetDefault("You are crying");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
longerExpertDebuff = true;
}
public override void Update(NPC npc, ref int buffIndex)
{
if (npc.Calamity().tSad < npc.buffTime[buffIndex])
npc.Calamity().tSad = npc.buffTime[buffIndex];
npc.DelBuff(buffIndex);
buffIndex--;
}
}
}