Decimation_Mod/Content/Buffs/DecimationBuff.cs
FyloZ 9c23e3284f Fixed Bloodshot Eye disappearing.
The Bloody Lunar Tablet can now be used the day.
2020-06-04 17:17:01 -04:00

30 lines
842 B
C#

using Terraria.ModLoader;
using Terraria;
namespace Decimation.Content.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;
}
}
}