Files
CalamityModPublic/Buffs/StatDebuffs/WhisperingDeath.cs
T

35 lines
992 B
C#

using CalamityMod.DataStructures;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatDebuffs
{
public class WhisperingDeath : ModBuff
{
// Whispering Death does not deal DoT, but is classified as a sickness debuff.
public static DebuffData debuffData = new DebuffData()
{
SicknessDebuffScaling = 1
};
public override void SetStaticDefaults()
{
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
BuffID.Sets.LongerExpertDebuff[Type] = true;
BuffDatasets.DebuffDataset[Type] = debuffData;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().whisperingDeath = true;
}
public override void Update(NPC npc, ref int buffIndex)
{
npc.Calamity().whisperingDeath = true;
}
}
}