We should always consider the impact of function on form. For architectural design in dungeons, take a look at some of the burial sites in the Valley of the Kings. Part of the agenda was to prevent tomb robbers having an easy time; religious iconography and possibly numerology also figure, but I can't say how.
The sites were dry but deserts are prone to flash flooding each decade or so; presumably the Egyptians (who were at the burial game for literally millennia) considered drainage as well. http://www.thebanmappingproject.com/sites/
The most extensive tomb is no 5, a tomb for the sons of Rameses IV.