﻿using System;

namespace ShadowsOfShadows.Items
{
	public abstract class Item
	{
      protected String Name { get; set; }
      protected String StatsString { get; set; }

		  public Item(String name, String stats)
		  {
            Name = name;
            StatsString = stats;
		  }
      public override String ToString()
      {
          String result = Name + "\n" + "Statistics:\n" + StatsString;
          return result;
      }

	    public abstract AllowedItem Allowed { get; }

	    public virtual bool IsLike(Item item)
	    {
	        return false;
	    }
	}
}

﻿using System;

namespace ShadowsOfShadows.Items
{
    public abstract class Item
    {
        protected string Name { get; set; }
        protected string StatsString { get; set; }

        public Item(string name, string stats)
        {
            Name = name;
            StatsString = stats;
        }

        public override string ToString() => Name;

        public string Details()
        {
            string result = Name + "\n" + "Statistics:\n" + StatsString;
            return result;
        }

        public abstract AllowedItem Allowed { get; }

        public virtual bool IsLike(Item item)
        {
            return false;
        }
    }
}
Make ToString() short and provide Details()
Make ToString() short and provide Details()
