Finally solved the weapon quality ranks thing