Skip to main content

Module rules_text

Module rules_text 

Source
Expand description

Rules text: spells’ and conditions’ full descriptions, kept like monsters in a shared library (the SRD) and per campaign (homebrew), and looked up by name, e.g. for a spell on a character sheet or an effect in a fight.

Structs§

ConditionText
A condition, such as Prone, or any other named effect worth describing.
Entry
A stored piece of rules text: server-assigned metadata plus the text.
SpellText
A spell as the books describe it. Everything but the name has a default, so a homebrew spell needs only what it has.

Enums§

RulesTextError
Why a spell or condition can’t be kept.

Traits§

RulesText
Something kept as rules text: what it’s called and where it’s from.

Functions§

named
The one called name (any case), preferring the campaign’s own to the shared library’s.

Type Aliases§

ConditionEntry
A stored condition.
SpellEntry
A stored spell.