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.
Campos
| Campo | Tipo | Padrão | Descrição |
|---|---|---|---|
weight | Int | 1 | Relative chance of the affix when the generator draws its affixes. 0 keeps it out of every draw. |
Campos comuns do TypeWriter (displayName, modifiers, triggers)
| Campo | Tipo | Padrão | Descrição |
|---|---|---|---|
displayName | Var<String> | — | The name of the affix as the players read it. Placeholders are accepted.PlaceholdersCores |
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.