Decimation_Mod/Content/Buffs/Buffs/Werepire.cs
FyloZ 80262bf100 Updated buffs sprites.
Updated fire amulet's synergy.
2020-06-06 12:00:15 -04:00

34 lines
895 B
C#

using Decimation.Lib.Buffs;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Decimation.Content.Buffs.Buffs
{
internal class Werepire : DecimationBuff
{
protected override string DisplayName => "Werepire!";
protected override string Description => "Grants both Vampire! and Werewolf effects";
protected override void Init()
{
save = true;
clearable = true;
}
public override void Update(Player player, ref int buffIndex)
{
player.AddBuff(BuffID.Werewolf, 1);
player.AddBuff(ModContent.BuffType<Vampire>(), 1);
player.wereWolf = false;
}
public override void Update(NPC npc, ref int buffIndex)
{
npc.AddBuff(BuffID.Werewolf, 1);
npc.AddBuff(ModContent.BuffType<Vampire>(), 1);
}
}
}