How many doors are on each floor?
I analyzed the associated section from the GameConfig.xml according to some information that was provided here.
<!-- ============= DUNGEON ROOM COUNT ============= -->
<DungeonRoomCountMin>
<CurveOperation Type="Multiplication">
<Curve Abscissa="Level">
<CurvePoint X="1" Y="12" Link="true" />
<CurvePoint X="8" Y="26" Link="true" />
<CurvePoint X="11" Y="28" Factor="0" />
</Curve>
<Curve Abscissa="PlayerCount" BaseValue="1">
</Curve>
</CurveOperation>
</DungeonRoomCountMin>
<DungeonRoomCountMax>
<CurveOperation Type="Multiplication">
<Curve Abscissa="Level">
<CurvePoint X="1" Y="16" Link="true" />
<CurvePoint X="9" Y="32" Link="true" />
<CurvePoint X="12" Y="34" Factor="0" />
</Curve>
<Curve Abscissa="PlayerCount" BaseValue="1">
</Curve>
</CurveOperation>
</DungeonRoomCountMax>
I entered the given values (in bold) into a table and extrapolated the missing values. Link="true" means that linear interpolation between two successive values is used. Factor="0" sets the slope to 0, so following values stay the same.
About the "41" limit: sadly, there is a limitation in our dungeon generator. Because we defined the global possible shapes of each floor, you can exceed this (partly random) limit with the XML value. The limit is higher in the upper floors.
This was posted by a developer in this question on the same thing.
Basically, it's a partially random number that has a limit that increases the more levels you go through. There is no set number of doors per level.
Source