Files
CalamityModPublic/Buffs/StatDebuffs/AbsorberAffliction.cs
T
Xyk f75d2c68e3 Reworked Absorber
16 defense
10% increased movement and jump speed
Enemies take immense damage when they touch you and are afflicted with a debuff that reduces damage reduction significantly
Using a healing potion will spawn a cleansing aura
Walking into the aura removes all debuffs and defense damage one time
The aura provides greatly increased life regen, damage, and damage reduction for all players inside for 15 seconds
5% of the damage from enemy attacks is absorbed and converted into healing
2023-08-07 14:48:41 -04:00

25 lines
655 B
C#

using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatDebuffs
{
public class AbsorberAffliction : ModBuff
{
public override void SetStaticDefaults()
{
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
}
public override void Update(NPC npc, ref int buffIndex)
{
if (npc.Calamity().absorberAffliction < npc.buffTime[buffIndex])
npc.Calamity().absorberAffliction = npc.buffTime[buffIndex];
npc.DelBuff(buffIndex);
buffIndex--;
}
}
}