actions actions : Record < string , Action > Optionalarmor Prof armorProf ?: Trait < "med" | "lgt" | "hvy" | "shl" | "twr" > at Will atWill : boolean
Defined in module/models/item/spell-model.d.ts:46 Optionalchange Flags changeFlags ?: Set < | "haste" | "lowLightVision" | "seeInDarkness" | "seeInvisibility" | "immuneToMorale" | "loseDexToAC" | "noMediumEncumbrance" | "noHeavyEncumbrance" | "mediumArmorFullSpeed" | "heavyArmorFullSpeed" | "noAblScore.str" | "noAblScore.dex" | "noAblScore.con" | "noAblScore.int" | "noAblScore.wis" | "noAblScore.cha" | "pointBlankShot" | "rapidShot" | "manyshot" , >
class Skills classSkills : Set < | "int" | "crf" | "acr" | "swm" | "clm" | "fly" | "lor" | "art" | "per" | "apr" | "blf" | "dip" | "dev" | "dis" | "esc" | "han" | "hea" | "kar" | "kdu" | "ken" | "kge" | "khi" | "klo" | "kna" | "kno" | "kpl" | "kre" | "lin" | "prf" | "pro" | "rid" | "sen" | "slt" | "spl" | "ste" | "sur" | "umd" , >
Optionalcl Offset clOffset ?: number
Defined in module/models/item/spell-model.d.ts:18 components components : { divineFocus ?: number ; emotion ?: boolean ; focus ?: boolean ; material ?: boolean ; somatic ?: boolean ; thought ?: boolean ; value ?: FreeText ; verbal ?: boolean ; } Defined in module/models/item/spell-model.d.ts:23 Optionalcontext Notes contextNotes ?: Record < string , ContextNote >
descriptors descriptors : Set < | "force" | "darkness" | "light" | "evil" | "good" | "lawful" | "chaotic" | "shadow" | "poison" | "fire" | "acid" | "fear" | "draconic" | "air" | "emotion" | "cold" | "curse" | "death" | "disease" | "earth" | "electricity" | "languageDependent" | "meditative" | "mindAffecting" | "pain" | "ruse" | "sonic" | "water" , >
Defined in module/models/item/spell-model.d.ts:22 domain domain : boolean
Defined in module/models/item/spell-model.d.ts:48 Optionallanguages languages ?: Set < | "dark" | "aboleth" | "abyssal" | "aklo" | "ancientosiriani" | "androffan" | "aquan" | "auran" | "azlanti" | "boggard" | "brethedan" | "canto" | "catfolk" | "celestial" | "common" | "cyclops" | "draconic" | "drowsign" | "druidic" | "dtang" | "dwarven" | "dziriak" | "ekekeh" | "elderthing" | "elven" | "erutaki" | "firstspeech" | "gholgan" | "giant" | "gnoll" | "gnome" | "goblin" | "grippli" | "grioth" | "gug" | "halfling" | "hallit" | "honla" | "hwan" | "ib" | "ignan" | "infernal" | "iobaran" | "jandelayan" | "jistka" | "kasatha" | "kelish" | "kuru" | "lashunta" | "migo" | "minatan" | "minkaian" | "munavri" | "nagaji" | "necril" | "orc" | "orvian" | "osiriani" | "polyglot" | "protean" | "reptoid" | "rougarou" | "sakvroth" | "samsaran" | "sasquatch" | "senzar" | "shadowtongue" | "shae" | "shoanti" | "shobhad" | "skald" | "sphinx" | "strix" | "sylvan" | "syrinx" | "taldane" | "tekritanin" | "tengu" | "terran" | "thassilonian" | "tien" | "treant" | "triaxian" | "undercommon" | "urdefhan" | "vanaran" | "varisian" | "varki" | "vegepygmy" | "vishkanya" | "vudrani" | "wayang" | "yaddithian" | "yithian" , >
learned At learnedAt : { bloodline ?: Record < Slug , number > ; class ?: Record < Slug , number > ; domain ?: Record < Slug , number > ; elementalSchool ?: Record < Slug , number > ; subDomain ?: Record < Slug , number > ; } Defined in module/models/item/spell-model.d.ts:10 level level : number
Defined in module/models/item/spell-model.d.ts:17 materials Defined in module/models/item/spell-model.d.ts:33 preparation preparation : { max : number ; value : number }
Defined in module/models/item/spell-model.d.ts:39 school school : | "con" | "misc" | "abj" | "div" | "enc" | "evo" | "ill" | "nec" | "trs" | "uni"
Defined in module/models/item/spell-model.d.ts:20 script Calls scriptCalls : Record < string , ItemScriptCall >
Optionalshow In Combat showInCombat ?: boolean
Optionalshow In Quickbar showInQuickbar ?: boolean
Optionalsl Offset slOffset ?: number
Defined in module/models/item/spell-model.d.ts:19 slot Cost slotCost : number | undefined
Defined in module/models/item/spell-model.mjs:362 Defined in module/models/item/spell-model.d.ts:56 spellbook Defined in module/models/item/spell-model.mjs:400 Defined in module/models/item/spell-model.d.ts:38 spellbook Id spellbookId : any
Defined in module/models/item/spell-model.mjs:39 sr sr : boolean
Defined in module/models/item/spell-model.d.ts:47 subschool subschool : Set < string >
Defined in module/models/item/spell-model.d.ts:21 Optionalsub Type subType ?: string
uses uses : { autoDeductChargesCost ?: Formula } Defined in module/models/item/spell-model.d.ts:43 Optionalweapon Prof weaponProf ?: Trait < "simple" | "siege" | "martial" | "firearm" | "heavy" > attack Notes get attackNotes () : HTML [] effect Notes get effectNotes () : HTML [] Abstract_ active State Change _activeStateChange ( changed : object ) : boolean Internal ExperimentalReturns boolean _ charge Pre Update _chargePreUpdate ( changed : object , context : object ) : Promise < void > InternalParameters changed : object context : object Returns Promise < void > Protected_ recharge Actions _rechargeActions ( options ?: { exact : boolean ; period ?: string ; rollData ?: object } , ) : object | undefined ProtectedParameters options : { exact : boolean ; period ?: string ; rollData ?: object } = {} exact : boolean Optionalperiod ?: string OptionalrollData ?: object Returns object | undefined
Update data or undefined if no update is needed.
_ recharge Preparation _rechargePreparation ( options : any ) : { preparation : { value : any } } | undefined InternalReturns { preparation : { value : any } } | undefined Defined in module/models/item/spell-model.mjs:1200 Protected_ recharge Uses _rechargeUses ( options ?: { exact ?: boolean ; maximize ?: boolean ; period ?: string ; rollData ?: object ; value ?: number ; } , ) : Promise < object | undefined > ProtectedParameters options : { exact ?: boolean ; maximize ?: boolean ; period ?: string ; rollData ?: object ; value ?: number ; } = {} Optionalexact ?: boolean Optionalmaximize ?: boolean Optionalperiod ?: string OptionalrollData ?: object Optionalvalue ?: number Returns Promise < object | undefined >
Promise for the update, update data object, or undefined (no update needed).
_ update Charge Linking _updateChargeLinking () : void _ update Inherited Charges _updateInheritedCharges ( source : Item < "base" | ModuleSubType > ) : void InternalParameters source : Item < "base" | ModuleSubType > Returns void add Charges addCharges ( value : number , data ?: object ) : Promise < void | SpellModel > Parameters value : number Optionaldata : object = null Returns Promise < void | SpellModel > Updated document or undefined if no update is possible or required.
Defined in module/models/item/spell-model.mjs:1084 get Concentration DC getConcentrationDC ( type ?: string , options ?: object ) : number Parameters type : string = "defensive" Optionaloptions : object = {} Returns number
Defined in module/models/item/spell-model.mjs:1030 get Default Charge Cost getDefaultChargeCost ( options ?: { rollData ?: object } ) : number Parameters Optionaloptions : { rollData ?: object } = {} OptionalrollData ?: object Returns number
Protected Abstractget Labels getLabels ( labels : object , options ?: { isolated ?: boolean ; rollData ?: object } , ) : void ProtectedParameters labels : object Optionaloptions : { isolated ?: boolean ; rollData ?: object } = {} Returns void get Name getName ( asPlayer ?: boolean ) : string Parameters OptionalasPlayer : boolean = false Returns string
Abstractget Proficiency getProficiency ( _weapon ?: boolean ) : boolean Parameters Optional_weapon : boolean = true Returns boolean
Whether or not the owner of the item is proficient.
get Roll Data getRollData ( result : any ) : void get Spellbook
Defined in module/models/item/spell-model.mjs:545 get Spell Components getSpellComponents ( options ?: { compact ?: boolean } ) : string [] Parameters options : { compact ?: boolean } = {} Optionalcompact ?: boolean Returns string []
Defined in module/models/item/spell-model.mjs:605 get Uses getUses ( max ?: boolean ) : number Returns number
Defined in module/models/item/spell-model.mjs:555 prepare Dependent Data prepareDependentData ( final ?: boolean ) : void prepare Derived Data prepareDerivedData () : void recharge recharge ( options ?: {} , ) : Promise < | Item < "base" | ModuleSubType > | { system : { actions : any ; preparation : { value : any } | undefined } } , > Returns Promise < | Item < "base" | ModuleSubType > | { system : { actions : any ; preparation : { value : any } | undefined } } , >
Promise for the update, update data object, or undefined (no update needed).
Abstractset Active setActive ( active : boolean , context ?: object ) : Promise < SpellModel > Parameters active : boolean Optionalcontext : object
Update promise if item type supports the operation.
Static_ adjust New Item _adjustNewItem ( item : any , data : any , override ?: boolean ) : void Parameters item : any data : any override : boolean = false Returns void Static_ replace Consumable Conversion String _replaceConsumableConversionString ( string : string , rollData : object ) : string InternalParameters string : string rollData : object Returns string
Defined in module/models/item/spell-model.mjs:931 Staticget Consumable Price getConsumablePrice ( itemData : object , type : "spell" | "potion" | "scroll" | "wand" , overrides ?: { cl ?: number ; sl ?: number ; uses ?: number } , ) : number | undefined Parameters itemData : object type : "spell" | "potion" | "scroll" | "wand" Optionaloverrides : { cl ?: number ; sl ?: number ; uses ?: number } = {} Optionalcl ?: number Optionalsl ?: number Optionaluses ?: number Returns number | undefined
Price in GP, or undefined if type is invalid.
Defined in module/models/item/spell-model.mjs:988 Staticget Min CL From Data getMinCLFromData ( itemData : object ) : [ number , number ] Returns [ number , number ]
A tuple containing the spell level and caster level in order.
Defined in module/models/item/spell-model.mjs:664 Static Abstractmigrate Parent Data migrateParentData ( _source : object ) : void Staticprune Data pruneData ( source : any ) : void Staticto Consumable toConsumable ( origData : any , type : "potion" | "scroll" | "wand" , options ?: { cl ?: number ; identified ?: boolean ; item : any ; sl ?: number ; spellType ?: string ; unidentifiedName ?: string ; uses ?: number ; } , ) : Promise < object | null > Parameters origData : any type : "potion" | "scroll" | "wand" Optionaloptions : { cl ?: number ; identified ?: boolean ; item : any ; sl ?: number ; spellType ?: string ; unidentifiedName ?: string ; uses ?: number ; } = {} Optionalcl ?: number Optionalidentified ?: boolean item : any Optionalsl ?: number OptionalspellType ?: string OptionalunidentifiedName ?: string Optionaluses ?: number Returns Promise < object | null >
Item data for appropriate consumable, or null if dialog option was used and it was cancelled.
Defined in module/models/item/spell-model.mjs:709 Staticto Consumable Prompt toConsumablePrompt ( itemData : any , options ?: { actor ?: object ; allowSpell ?: boolean ; identified ?: boolean ; item ?: ItemPF ; spellType ?: string ; } , ) : Promise < false | object | null > Parameters itemData : any Optionaloptions : { actor ?: object ; allowSpell ?: boolean ; identified ?: boolean ; item ?: ItemPF ; spellType ?: string ; } = {} Optionalactor ?: object OptionalallowSpell ?: boolean Optionalidentified ?: boolean Optionalitem ?: ItemPF OptionalspellType ?: string Returns Promise < false | object | null >
Returns null if cancelled, false if no conversion is to take place (spell chosen), or converted data.
Defined in module/models/item/spell-model.mjs:952
Show item in combat tab.