OptionalactionsOptionalactiveOptionalarmorOptionalattackOptionalchangeOptionalchangesOptionalclassOptionalconditionsOptionalcontextOptionaldescriptionOptionaldurationOptionaleffectOptionalflagsOptionalhideOptionallanguagesOptionallevelOptionallinksOptionalparentOptionalscriptOptionalshowShow item in combat tab.
OptionalshowDisplay item and its actions in quick actions and token HUD.
OptionalsubOptionaltagOptionalweaponStaticmetadataActive state as per what setActive would correspond with.
The item's material addons.
Consumes are adds charges by default.
Base material
Is this item usable at base level, disregarding per-action details.
Remaining charges
Retrieve associated tracking Active Effect
Finite charges
Is Active
This returns composite result of if the item is equipped, has quantity, is not disabled, is not out of charges, etc. and is not representative if the item can be set active or not via setActive.
AbstractisThe item's actual material.
Internal ExperimentalReturn active state change from data if present
This is a hack to allow item-type agnostic active state change detection.
InternalHandle charge update sanity checking, constraining them to reasonable values, and propagating to parent items if charges are shared.
Changed data
Context
Creation data
Creation context
User ID
Delete context options
Triggering user ID
Update data
Update context options
User ID
InternalContext
Triggering user
InternalInternalChanged data
Context
Triggering user
Protected_ProtectedUpdate action limited uses
{@inheritDoc ItemPF.recharge}
Options
Exact time period only
Optionalperiod?: stringRecharge only if matching this time period
OptionalrollData?: objectRoll data
Protected_ProtectedRecharges item's uses, if any.
Options
Optionalexact?: booleanMatch only exact time period
Optionalmaximize?: booleanMaximize instead of using recharge formula
Optionalperiod?: stringRecharge only if it matches this time period
OptionalrollData?: objectRoll data instance
Optionalvalue?: numberSet charges to specific value
InternalUpdate Charge Linking
InternalUpdate this item's charges based on provided item.
Charge source
Toggle active effect icon as necessary.
Update data
Get default charge cost for all actions.
Optionaloptions: { rollData?: object } = {}Additional options
OptionalrollData?: objectRoll data instance
Number for default cost.
Default charge formula.
InternalDuration of the buff in seconds.
Optionaloptions: { interactive?: boolean; rollData?: object } = {}Additional options
Optionalinteractive?: booleanDirectly triggered from user interaction
OptionalrollData?: objectRoll data
Duration in seconds or null if if it has no duration.
Protected AbstractgetProtectedCalled by ()
Optionaloptions: { isolated?: boolean; rollData?: object } = {}Visible item name
OptionalasPlayer: boolean = falseIf true, return value players see.
AbstractgetDataModel specific roll data
Roll data
Prepare data dependent on other items
Called in actor.prepareDerivedData() when all items are guaranteed to be prepared.
Recharges item's uses, if any.
Options
Optionalcommit?: booleanCommit update directly. If false, returns the update data instead.
Optionalcontext?: objectUpdate context
Optionalexact?: booleanUse exact time period. Otherwise "week" for example will also recharge items with "day" period.
Optionalmaximize?: booleanRecharge to full regardless of recharge formula.
Optionalperiod?: "round" | "minute" | "hour" | "day" | "week" | "any"Recharge period. Use "any" to ignore item's configuration.
OptionalrollData?: objectRoll data instance to use for formulas.
Optionalvalue?: numberRecharge to specific value, respecting maximum and minimum bounds.
Protected Static Abstract_ProtectedAdjust temporary item before creation
Optionalitem: ItemPFTemporary document
Optionaldata: objectCreation data
Optionaloverride: boolean = falseOverride values even if defined
StaticdefineStaticmigrateStatic AbstractmigrateParent datamodel (item document) migration
AVOID USING THIS
Document source data
Staticprune
Basic Item model with actions and related data