Opioid dependence lowers the pain threshold over time.
So less and less pain stimuli are perceived as greater and greater pain. This is a form of opioid seeking originating in the pleasure area of brain. After detox and sobriety, pain thresholds increase slowly to preaddiction levels. Perfeption of pain is one of the major reasons that opioid users have difficulty getting off them.