Перейти к основному содержимому

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.

Поля

ПолеТипПо умолчаниюОписание
weightInt1Relative chance of the affix when the generator draws its affixes. 0 keeps it out of every draw.
Общие поля TypeWriter (displayName, modifiers, triggers)
ПолеТипПо умолчаниюОписание
displayNameVar<String>—The name of the affix as the players read it. Placeholders are accepted.ПлейсхолдерыЦвета
modifiersList<Modifier>emptyModifiers applied to the players of the run when the affix is active.
triggersList<Ref<TriggerableEntry>>emptyTriggers 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.