Files
CalamityModPublic/Buffs/Summon/ProfanedBabs.cs
T
Amber Sienna 4e1f65f33d Added the Profaned Soul Crystal
Added an override for being able to attack normally passive minions (i.e impious immolator/abyss creatures)
Added a delay for hurt sounds for transforms
2020-03-10 05:47:00 +00:00

33 lines
979 B
C#

using CalamityMod.CalPlayer;
using CalamityMod.Projectiles.Summon;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Summon
{
public class ProfanedBabs : ModBuff //Buff name is reference to how I refer to the guardians as my babs ~Amber
{
public override void SetDefaults()
{
DisplayName.SetDefault("The Profaned Soul");
Description.SetDefault("The healer will heal your wounds!");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
CalamityPlayer modPlayer = player.Calamity();
if (!modPlayer.gHealer || modPlayer.profanedCrystalBuffs)
{
player.DelBuff(buffIndex);
buffIndex--;
}
else
{
player.buffTime[buffIndex] = 18000;
}
}
}
}