public static bool CanMerge(ObjectInteraction mergingInto, ObjectInteraction mergingFrom) { //if ((objInt().item_id==ObjectUsedOn.GetComponent<ObjectInteraction>().item_id) && (objInt().Quality==ObjectUsedOn.GetComponent<ObjectInteraction>().Quality)) return ( ( (mergingInto.item_id == mergingFrom.item_id) || (mergingInto.AliasItemId() == mergingFrom.item_id) || (mergingInto.item_id == mergingFrom.AliasItemId()) ) && (mergingInto.Quality==mergingFrom.Quality) ); }