QuteHazard

Pf2eTools Hazard attributes (hazard2md.txt)

Hazards are rendered both standalone and inline (as an admonition block). The default template can render both. It uses special syntax to handle the inline case.

Use %%-- to mark the end of the preamble (frontmatter and other leading content only appropriate to the standalone case).

Extension of Pf2eQuteBase

Attributes

abilities, actions, attacks, books, complexity, defenses, disable, getAliases, hasSections, labeledSource, level, name, perception, reprintOf, reset, routine, routineAdmonition, source, sourceAndPage, sourcesWithFootnote, stealth, tags, text, traits, vaultPath

abilities

The hazard's abilities, as a list of QuteAbility

actions

The hazard's actions, as a list of QuteAbilityOrAffliction.

Using the elements directly will give a default rendering, but if you want more control you can use isAffliction and isAbility to check whether it's an affliction or an ability. Example:

{#each resource.actions}
{#if it.isAffliction}

**Affliction** {it}
{#else if it.isAbility}

**Ability** {it}
{/if}
{/each}

attacks

The attacks available to the hazard, as a list of QuteInlineAttack

books

List of source books using abbreviated name. Fantasy statblocks uses this list format, as an example.

complexity

defenses

disable

getAliases

Aliases for this note, including the note name, as quoted/escaped strings.

Example values:

In templates:

aliases:
{#each resource.aliases}
- {it}
{/each}

hasSections

True if the content (text) contains sections

labeledSource

Formatted string describing the content's source(s): _Source: <sources>_

level

name

Note name

perception

The hazard's perception, as a QuteDataGenericStat

reprintOf

List of content superceded by this note (as Reprinted)

reset

routine

routineAdmonition

source

String describing the content's source(s)

sourceAndPage

Book sources as list of SourceAndPage

sourcesWithFootnote

Get Sources as a footnote.

Calling this method will return an italicised string with the primary source followed by a footnote listing all other sources. Useful for types that tend to have many sources.

stealth

The hazard's stealth, as a QuteHazardAttributes

tags

Collected tags for inclusion in frontmatter

text

Formatted text. For most templates, this is the bulk of the content.

traits

Collection of traits (decorated links)

vaultPath

Path to this note in the vault