I have my doubts that Larian built a game with D&d 5e rules as written (in entirety), and then spent time changing the code again to be more like D:OS2.