Internal
_Optional
imgOptional
maneuverOptional
parentOptional
tagStatic
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
Internal
Default attack ability
Internal
Default damage ability
Parent actor of the parent item
Addon materials
All relevant Changes the action's damage.
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.
Returns null when crit is not possible.
An array of changes affecting this action's damage
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 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?
Parent item
The action's maximum range (range multiplied by maximum range increments).
The action's exclusive minimum range.
The action's first increment range (in system configured units)
Retrieve UUID
Relies on Item#getEmbeddedDocument() override to function with fromUuid() and similar functions.
Static
documentInternal
Replace conditionals array with collection
Delete this action
Generate 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.
Optional
interactive?: booleanOptional
maximize?: booleanOptional
minimize?: booleanOptional
rollData?: objectPre-determined roll data to pass for determining the charge cost.
Optional
options: { maximize?: boolean; minimize?: boolean; rollData?: object } = {}Additional options to configure behavior.
Optional
maximize?: booleanOptional
minimize?: booleanOptional
rollData?: objectPre-determined roll data to pass for determining the charge cost.
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
options: object = {}Options passed to ItemPF#getChatData affecting the chat data
Chat data for this action's parent and this action
Generates a list of critical applications for a given formula target.
The target key as defined in pf1.config.conditionalTargets.
A list of critical applications.
Generates lists of conditional modifier bonus types applicable to a formula.
The target key as defined in pf1.config.conditionTargets.
A list of bonus types.
Generates lists of conditional sub-targets this action can have.
The target entry
Generates a list of targets this modifier can have.
Target ID to label mapping.
Optional
rollData: object = nullData to pass to the roll. If none is given, get new roll data.
The Difficulty Class for this action.
For supporting conditionals in fromUuid()
Synced with Foundry v12.331
Returns labels related to this particular action
Optional
options: { isolated?: boolean; rollData?: object } = {}Optional
isolated?: booleanAre these labels generated for isolated information (that is, need more details)
Optional
rollData?: objectPre-determined roll data. If not provided, finds the action's own roll data.
This action's labels
Get power attack, deadly aim or piranha strike multiplier.
Optional
options: { rollData?: object } = {}Additional options
Optional
rollData?: objectRoll data instance
Optional
options: { rollData?: object; type?: "min" | "max" | "single" } = {}Additional options to configure behavior.
Optional
rollData?: objectSpecific roll data to pass.
Optional
type?: "min" | "max" | "single"What type of range to query. Either "single" (for a single range increment), "max" or "min".
The given range, in system configured units, or null
if no range is applicable.
Internal
Optional
options: objectInternal
Data preparation
Render all connected application instances.
Optional
force: boolean = falseForce rendering
Optional
context: object = {}Optional context
Place an attack roll using an item (weapon, feat, spell, or equipment)
Optional
options: {Options
Optional
bonus?: stringAdditional attack bonus
Optional
data?: objectRoll data
Optional
extraChanges?: ItemChange[]Additional changes
Optional
extraParts?: string[]Additional attack parts
Optional
primary?: booleanTreat as primary natural attack
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
Update the action
TODO: BROKEN
Update data
Update context
Use action.
Wrapper for () ItemPF.use()
Options passed to ItemPF.use()
.
ItemPF.use()
returns.Static
createStatic
defineStatic
migrateStatic
pruneInternal
Prune data
Raw data (e.g. product of toObject())
Action pseudo-document