Dungeon Affix
Dungeon Affix
A modifier of a generated dungeon, drawn by weight from the affixes of a generator: its name for the players, what it changes and what it fires.
字段
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
weight | Int | 1 | Relative chance of the affix when the generator draws its affixes. 0 keeps it out of every draw. |
TypeWriter 通用字段(displayName, modifiers, triggers)
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
displayName | Var<String> | — | The name of the affix as the players read it. Placeholders are accepted.占位符颜色 |
modifiers | List<Modifier> | empty | Modifiers applied to the players of the run when the affix is active. |
triggers | List<Ref<TriggerableEntry>> | empty | Triggers fired for the players of the run when the affix becomes active. |
How to use it
An affix is a twist applied to a generated run, such as a modifier on the players. The generator draws affixCount affixes from its affixes list by weight (0 keeps one out), without repeating, following the seed but never changing the layout. When the run starts, the modifiers apply to each member and the triggers fire, and a line names the affix. Its triggers read RUN_ID, SEED and DIFFICULTY from the context. See Generated dungeons.