namespace ProjectPioneer.Systems.Equipment
{
	public class Aura : IEquipment
	{
		private readonly int _id;
		public int ID => _id;

		private readonly string _name = string.Empty;
		public string Name => _name;

		private readonly string _description = string.Empty;
		public string Description => _description;

		public string ImageName => Name.Replace(" ", "").Replace("\'", "");

		private readonly EquipmentType _equipmentType = EquipmentType.None;
		public EquipmentType EquipmentType => _equipmentType;

		private readonly Stats _stats;
		public Stats Stats => _stats;

		public Aura(int id, string name, string description, EquipmentType equipmentType, Stats stats)
		{
			_id = id;
			_name = name;
			_description = description;
			_equipmentType = equipmentType;
			_stats = stats;
		}

		public int GetPurchaseValue()
		{
			return _stats.Level * Constants.AuraCostScaling;
		}

		public int GetSellableValue()
		{
			return (int)Math.Ceiling(GetPurchaseValue() * Constants.EquipmentSellValueScaling);
		}
	}
}
