What does D&D do mechanically?
Yes, it does precisely that, because that's precisely what it is and has always been, mechanically, from its inception.
D&D's engine is a wargame engine, but with a critical component removed: it is a "campaign" where one of the armies (the PCs) must continually...