2 - Reduced the duration of most slowing debuffs. 3 - Cal Clone Soul Seekers cannot fire while she's doing a bullet hell. 4 - Reworked enemy and boss debuff immunities to make more sense. 5 - Increased Aquatic Scourge and Desert Scourge HP because they're now vulnerable to debuffs. 6 - Reduced the damage of Bloodflare ranged set bonus phantoms. 7 - Adjusted DoG's fireball explosion spread. 8 - Leviathan hitboxes should work properly now. 9 - Sun Bats no longer derp out.
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using CalamityMod.NPCs;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Buffs.StatDebuffs
|
|
{
|
|
public class TeslaFreeze : ModBuff
|
|
{
|
|
public override void SetDefaults()
|
|
{
|
|
DisplayName.SetDefault("Galvanic Corrosion");
|
|
Description.SetDefault("Your limbs have begun to corrode");
|
|
Main.debuff[Type] = true;
|
|
Main.pvpBuff[Type] = true;
|
|
Main.buffNoSave[Type] = false;
|
|
longerExpertDebuff = false;
|
|
}
|
|
|
|
public override void Update(NPC npc, ref int buffIndex)
|
|
{
|
|
if (npc.Calamity().tesla < npc.buffTime[buffIndex])
|
|
npc.Calamity().tesla = npc.buffTime[buffIndex];
|
|
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
|
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().tesla;
|
|
npc.DelBuff(buffIndex);
|
|
buffIndex--;
|
|
}
|
|
|
|
public override void Update(Player player, ref int buffIndex)
|
|
{
|
|
player.Calamity().teslaFreeze = true;
|
|
}
|
|
}
|
|
}
|