+ Fixed issues with Popo buffs not displaying properly
This commit is contained in:
1 parent
ecded70417
commit
fa46d1348f
6 files changed
+6
-14
No files matched your search
@@ -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<Popo>())
|
||||
if (player.Transformation().Type == ModContent.ItemType<Popo>())
|
||||
modPlayer.snowmanNoseless = true;
|
||||
else
|
||||
{
|
||||
|
||||
@@ -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<AbsorberAura>(), 0, 0, Player.whoAmI);
|
||||
|
||||
if (snowman)
|
||||
if (Player.Transformation().Type == ModContent.ItemType<Popo>())
|
||||
{
|
||||
if (Player.whoAmI == Main.myPlayer && !snowmanNoseless)
|
||||
Player.AddBuff(BuffType<PopoBuff>(), 60, true);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -37,7 +37,5 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual) => player.Calamity().snowman = true;
|
||||
}
|
||||
}
|
||||
@@ -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<Popo>())
|
||||
{
|
||||
if (npc.type == NPCID.Demon || npc.type == NPCID.VoodooDemon || npc.type == NPCID.RedDevil)
|
||||
target.AddBuff(BuffType<PopoNoselessBuff>(), 36000);
|
||||
|
||||
Reference in new issue
Block a user