Decimation_Mod/Content/Buffs/DecimationBuff.cs
FyloZ ec4585bed5 - Changed Bloodshot Eye's music to Boss 1 Orchestra ( https://www.youtube.com/watch?time_continue=120&v=r-9nKGc85FQ )
- Added support for animated projectiles
- Refactoring
- Removed useless fields
- Fixed swords not dealing damages
- Added Hour Hand (from Evie's PR)
2020-03-21 00:11:07 -04:00

35 lines
958 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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;
}
}
}