Drinking/drugs usually takes everything. What if instead, we want to have everything? To have everything we need to do God’s will all the time. Americans call it finding our purpose. Read books on God’s will, and purpose. Pray about it. Become obsessed with it. Study articles daily online to become educated about how to find it.
Obviously, we need to quit bad habits to fulfill our purpose. But once you are obsessed with finding purpose and doing God’s will, bad habits really do start to fall away.