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

30 lines
838 B
C#

using Terraria.ModLoader;
using Terraria;
namespace Decimation.Lib.Buffs
{
internal abstract class DecimationBuff : ModBuff
{
protected bool save = false;
protected bool displayTime = true;
protected bool clearable = true;
protected new abstract string DisplayName { get; }
protected new abstract string Description { get; }
public virtual bool Debuff { get; } = false;
protected abstract void Init();
public sealed override void SetDefaults()
{
base.DisplayName.SetDefault(DisplayName);
base.Description.SetDefault(Description);
Main.debuff[Type] = Debuff;
Main.buffNoSave[Type] = !save;
Main.buffNoTimeDisplay[Type] = !displayTime;
canBeCleared = clearable;
}
}
}