public static ItemAttribute operator -(ItemAttribute item1, ItemAttribute item2) { ItemAttribute itemAttribute = new ItemAttribute { Damage = item1.Damage - item2.Damage, Defence = item1.Defence - item2.Defence, Strength = item1.Strength - item2.Strength, Intel = item1.Intel - item2.Intel, Agility = item1.Agility - item2.Agility }; itemAttribute.CalculateCompositeAttribute(); return(itemAttribute); }