2 - Internally renamed DoG's Extreme Gravity vs Providence's Icarus Folly to be more clear. 3 - Added a few TODO comments regarding potential violations of the DR softcap. 4 - Rancor's debuff is now properly categorized as a DoT.
26 lines
714 B
C#
26 lines
714 B
C#
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Buffs.DamageOverTime
|
|
{
|
|
public class RancorBurn : ModBuff
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Main.debuff[Type] = true;
|
|
Main.buffNoSave[Type] = true;
|
|
Main.buffNoTimeDisplay[Type] = true;
|
|
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
|
}
|
|
|
|
public override void Update(NPC npc, ref int buffIndex)
|
|
{
|
|
if (npc.Calamity().RancorBurnTime < npc.buffTime[buffIndex])
|
|
npc.Calamity().RancorBurnTime = npc.buffTime[buffIndex];
|
|
npc.DelBuff(buffIndex);
|
|
buffIndex--;
|
|
}
|
|
}
|
|
}
|