Skip to main content

Dungeon Room Pool

Dungeon Room Pool

A named set of room templates with weights; the generator draws the rooms of a category from its pools.

Fields

FieldTypeDefaultDescription
templatesList<WeightedRoomTemplate>emptyThe templates of the pool and their weights. A pool for the start, the boss or the corridors holds templates of that category only; a normal pool may mix NORMAL, TREASURE and SECRET templates.
WeightedRoomTemplate (2)
FieldTypeDefaultDescription
templateRef<DungeonRoomTemplateEntry>—The room template.
weightInt1Relative chance of the template when the pool is drawn from. 0 keeps the template out of every draw.

How to use it​

A weighted list of room templates. A pool for the start, the boss or the corridors holds templates of that category only; a normal pool may mix NORMAL, TREASURE and SECRET. A template with weight 0 is never drawn. In a generator, each pool also has its own weight: the chance of a template is its weight in the pool times the weight of the pool.