Files
CalamityModPublic/Buffs/PopoNoselessBuff.cs
T
DominicKarma42 55e89c9b98 Replaced (hopefully) every magic number with a constant
Note: Does not include item rarities, and appears to shown nonexistant using directive movement in the commit. This does not really affect anything, however.
2020-05-30 17:56:36 -04:00

34 lines
890 B
C#

using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs
{
public class PopoNoselessBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Noseless Popo");
Description.SetDefault("Your nose has been stolen!");
Main.debuff[Type] = true;
Main.buffNoSave[Type] = true;
canBeCleared = false;
}
public override void Update(Player player, ref int buffIndex)
{
CalamityPlayer modPlayer = player.Calamity();
if (modPlayer.snowmanPrevious)
{
modPlayer.snowmanPower = true;
modPlayer.snowmanNoseless = true;
}
else
{
player.DelBuff(buffIndex);
buffIndex--;
}
}
}
}