QuteItem

Pf2eTools Item attributes

Extension of Pf2eQuteBase

Attributes

access, activate, altNames, ammunition, armor, books, category, contract, craftReq, duration, getAliases, group, hands, hasSections, labeledSource, level, name, onset, price, reprintOf, shield, source, sourceAndPage, sourcesWithFootnote, tags, text, traits, usage, variants, vaultPath, weapons

access

Formatted string. Item access attributes

activate

Item activation attributes as QuteItemActivate

altNames

ammunition

Formatted string. Ammunition required

armor

Item armor attributes as QuteItemArmorData

books

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

category

Formatted string. Item category

contract

Item contract attributes as a list of NamedText

craftReq

Formatted string. Crafting requirements

duration

Formatted string. How long will the item remain active

getAliases

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

Example values:

In templates:

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

group

Formatted string. Item group

hands

Formatted string. How many hands does this item require to use

hasSections

True if the content (text) contains sections

labeledSource

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

level

Formatted string. Item power level

name

Note name

onset

Formatted string. Onset attributes

price

Formatted string. Item price (pp, gp, sp, cp)

reprintOf

List of content superceded by this note (as Reprinted)

shield

Item shield attributes as QuteItemShieldData

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.

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)

usage

Item use attributes as a list of NamedText

variants

Item variants as list of QuteItemVariant

vaultPath

Path to this note in the vault

weapons

Item weapon attributes as list of QuteItemWeaponData