diff --git a/Buffs/PopoNoselessBuff.cs b/Buffs/PopoNoselessBuff.cs index 2f2c64f475..fd284151e7 100644 --- a/Buffs/PopoNoselessBuff.cs +++ b/Buffs/PopoNoselessBuff.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Buffs public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.Transformation().Type != ModContent.ItemType()) + if (player.Transformation().Type == ModContent.ItemType()) modPlayer.snowmanNoseless = true; else { diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 53fe5b5d97..3abf5065bb 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -1588,7 +1588,6 @@ namespace CalamityMod.CalPlayer public Color pscLerpColor = Color.White; public bool aquaticHeartPrevious; public bool aquaticHeart; - public bool snowman; public bool snowmanNoseless; public bool meldTransformationPrevious; public bool meldTransformation; @@ -2715,8 +2714,6 @@ namespace CalamityMod.CalPlayer pscState = 0; pscLerpColor = Color.White; - snowman = false; - meldTransformationPrevious = meldTransformation; meldTransformation = meldTransformationForce = meldTransformationPower = false; @@ -4060,7 +4057,7 @@ namespace CalamityMod.CalPlayer if (timePotionSick == 1 && Player.whoAmI == Main.myPlayer && absorber) Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Vector2.Zero, ProjectileType(), 0, 0, Player.whoAmI); - if (snowman) + if (Player.Transformation().Type == ModContent.ItemType()) { if (Player.whoAmI == Main.myPlayer && !snowmanNoseless) Player.AddBuff(BuffType(), 60, true); diff --git a/Items/Accessories/AbyssalDivingSuit.cs b/Items/Accessories/AbyssalDivingSuit.cs index e87fc1526f..6f2c4936cf 100644 --- a/Items/Accessories/AbyssalDivingSuit.cs +++ b/Items/Accessories/AbyssalDivingSuit.cs @@ -1,7 +1,5 @@ -using CalamityMod.CalPlayer; -using CalamityMod.Items.BaseItems; +using CalamityMod.Items.BaseItems; using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables; using Terraria; using Terraria.Audio; using Terraria.ID; diff --git a/Items/Accessories/AquaticHeart.cs b/Items/Accessories/AquaticHeart.cs index 6f470ba41a..25c761394a 100644 --- a/Items/Accessories/AquaticHeart.cs +++ b/Items/Accessories/AquaticHeart.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using CalamityMod.CalPlayer; +using System.Collections.Generic; using CalamityMod.Items.BaseItems; using Terraria; using Terraria.Audio; diff --git a/Items/Accessories/Vanity/Popo.cs b/Items/Accessories/Vanity/Popo.cs index 4ccf7d5cec..54b35ec96a 100644 --- a/Items/Accessories/Vanity/Popo.cs +++ b/Items/Accessories/Vanity/Popo.cs @@ -37,7 +37,5 @@ namespace CalamityMod.Items.Accessories.Vanity } return false; } - - public override void UpdateAccessory(Player player, bool hideVisual) => player.Calamity().snowman = true; } } diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index f239755ae5..58619fd79b 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -18,6 +18,7 @@ using CalamityMod.Graphics.Metaballs; using CalamityMod.Graphics.Renderers.CalamityRenderers; using CalamityMod.Items; using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories.Vanity; using CalamityMod.Items.Potions.Alcohol; using CalamityMod.Items.Tools; using CalamityMod.Items.Weapons.Melee; @@ -5404,7 +5405,7 @@ namespace CalamityMod.NPCs shocked = 120; } - if (target.Calamity().snowman) + if (target.Transformation().Type == ModContent.ItemType()) { if (npc.type == NPCID.Demon || npc.type == NPCID.VoodooDemon || npc.type == NPCID.RedDevil) target.AddBuff(BuffType(), 36000);