Files
CalamityModPublic/Buffs/DamageOverTime/Dragonfire.cs
T
Phuc Nguyen (Brav) af3028a2b9 1 - Updated Dragonfire to have an on-enemy effect
2 - Updated Dragonfire's tooltip and death message
3 - Made Phoenix Flame Barrage, The Burning Sky, Dragon Rage, Final Dawn, Dragon's Breath, Wrathwing and Yharim's Gift inflict Dragonfire
4 - Made Dragonfire's DoT stronger than God Slayer Inferno's (9 -> 18)
2022-08-12 22:32:44 -04:00

31 lines
871 B
C#

using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.DamageOverTime
{
public class Dragonfire : ModBuff
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Dragonfire");
Description.SetDefault("Engulfed by roaring flames");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().dragonFire = true;
}
public override void Update(NPC npc, ref int buffIndex)
{
if (npc.Calamity().dragonFire < npc.buffTime[buffIndex])
npc.Calamity().dragonFire = npc.buffTime[buffIndex];
npc.DelBuff(buffIndex);
buffIndex--;
}
}
}