set quality to 1 (HQ available) by default.
must set to 0 manually for items that can't be HQed (quest rewards, etc)