I think it’s a bit simplistic. For me usually during the right thing and feeling good go together. I would feel very good if I helped my friend to beat an addiction to drugs, and I would feel very bad if I did nothing about it.
On the other hand, I would feel awful if I failed to protect a fellow co-worker by doing something as simple as calling the police.
Things that are bad: lying, cheating, stealing, murder, torture, rape, hurting others in some way etc. feel bad. I can’t imagine feeling good doing those things. I’d feel terrible if I did them, in fact.
Things that are good: helping others, being a friend, contributing to society through hard work, learning, being active politically to better society etc. all feel good.
Maybe God gave us good and bad feelings as a guide to do what’s right.
Addictions etc. are diseases, so obviously people’s feelings about the substance they’re addicted to are all off. But otherwise…