When I was (very) depressed I could get plenty done. I just couldn’t feel any reward for getting anything done. Of course, I couldn’t feel any reward for slacking off either. So I had the choice to either live in a world of ash or live in a world of ash and do something. Either way I felt (or more accurately didn’t feel) the same way. So it was an easy choice and no willpower was required to actually do stuff.