using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Summon { public class HowlTrio : ModBuff { public override void SetStaticDefaults() { Main.buffNoTimeDisplay[Type] = true; Main.buffNoSave[Type] = true; //Main.persistentBuff[Type] = true; } public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); int howl = ModContent.ProjectileType(); int calcifer = ModContent.ProjectileType(); int turnip = ModContent.ProjectileType(); if (player.ownedProjectileCounts[howl] > 0 || player.ownedProjectileCounts[calcifer] > 0 || player.ownedProjectileCounts[turnip] > 0) { modPlayer.howlTrio = true; } if (!modPlayer.howlTrio) { player.DelBuff(buffIndex); buffIndex--; } else { player.buffTime[buffIndex] = 18000; } } } }