Action data
Data model options
Static
Readonly
FALLBACK_Default image if the action has no image and it is not correctly linked to an item
Static
Readonly
Internal
metadataMetadata mimicking Foundry documents
Required by pf1.applications.ItemActionSheet#_createDocumentIdLink
Addon materials
All relevant Changes the action's damage.
Effective per-attack ammo cost.
Effective ammo type.
Get all appropriate context changes for attack rolls.
Consumes charges on use?
Can this action be used?
Returns false if any known criteria for use limitation fails. Calls owning item's canUse functionality also.
Effective critical range when accounting for broken status and action type.
An array of changes affecting this action's damage
Effective enhancement bonus
Action's enhancement override or what is inherited from item.
Includes attack roll?
Does the action implement a damage roll as part of its usage
Has potentially multiple attacks
Does the item have range defined.
Does the Item implement a saving throw as part of its usage
Has sound effect?
Has measured template?
Action ID
Does parent item have charges?
Returns whether this action is a combat maneuver
Does the item provide an amount of healing instead of conventional damage?
Is ranged rather than melee.
Action has charges of its own?
Is spell-like action
The action's maximum range (range multiplied by maximum range increments).
The action's exclusive minimum range.
Misfire threshold
Normal material
The action's first increment range (in system configured units)
Current sheet.
Retrieve UUID
Relies on Item#getEmbeddedDocument() override to function with fromUuid() and similar functions.
Static
defaultStatic
defaultGenerate attacks.
Optional
options: {Options
Optional
bonuses?: booleanInclude other bonuses. Requires resolve
to be enabled.
Optional
conditionals?: booleanInclude conditional modifications. Requires resolve
to be enabled.
Optional
full?: booleanFull attack
Optional
resolve?: booleanIf the bonuses are to be resolved directly.
Optional
rollData?: objectRoll data
Optional
options: {Additional options to configure behavior.
Generates ChatData for this action's parent item, but with this action's data, regardless of whether it is the first action or not.
Optional
chatDataOptions: object = {}Options passed to ItemPF#getChatData affecting the chat data
Chat data for this action's parent and this action
Optional
options: { rollData?: object; type?: "single" | "min" | "max" } = {}Additional options to configure behavior.
The given range, in system configured units, or null
if no range is applicable.
Roll damage for an action.
Optional
options: {Options configuring the damage roll
Optional
conditionalParts?: objectConditional data sets
Optional
critical?: booleanWhether to roll critical damage
Optional
data?: null | objectrollData to be used
Optional
extraParts?: string[]Additional strings added to the roll formula
Optional
primaryAttack?: booleanWhether this is the primary attack
Created damage rolls, one roll per damage part
Use action.
Wrapper for () ItemPF.use()
Options passed to ItemPF.use()
.
ItemPF.use()
returns.Static
createCreates an action.
Static
defineStatic
migrateStatic
prune
Action pseudo-document