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
| Field | Type | Default | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
templates | List<WeightedRoomTemplate> | empty | The 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.
|
| Field | Type | Default | Description |
|---|---|---|---|
template | Ref<DungeonRoomTemplateEntry> | — | The room template. |
weight | Int | 1 | Relative 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.