Reminds me a little of the movie Yellowbeard. Should have been great but was merely tolerable. Tommy Chong played a very religious ruler who had a staff member whose job it was to design horrific new torture devices so as to help speed people along to their heavenly reward. This was a small sub-plot. It was mostly sort of a pirate movie.
Mastroianni and Hart