I believe it's based on the items stats; mage equip & meds requiring magic craftsmanship, weapons and armor requiring craftsmanship, etc. At this point the best way to go is probably to put the best stats you can into each equip location and hope for the best.