Hierarchy

  • ItemChange

Constructors

Properties

data: any
parent: any
updateTime: Date

Accessors

  • get subTarget(): "fort" | "ref" | "will" | "skills" | "attack" | "damage" | "acpA" | "acpS" | "mDexA" | "mDexS" | "str" | "dex" | "con" | "int" | "wis" | "cha" | "strMod" | "dexMod" | "conMod" | "intMod" | "wisMod" | "chaMod" | "unskills" | "carryStr" | "carryMult" | "strSkills" | "dexSkills" | "conSkills" | "intSkills" | "wisSkills" | "chaSkills" | "allChecks" | "strChecks" | "dexChecks" | "conChecks" | "intChecks" | "wisChecks" | "chaChecks" | "landSpeed" | "climbSpeed" | "swimSpeed" | "burrowSpeed" | "flySpeed" | "allSpeeds" | "ac" | "aac" | "sac" | "nac" | "tac" | "ffac" | "bab" | "~attackCore" | "mattack" | "rattack" | "wdamage" | "sdamage" | "critConfirm" | "allSavingThrows" | "cmb" | "cmd" | "ffcmd" | "init" | "mhp" | "wounds" | "vigor" | "spellResist" | "bonusFeats" | "bonusSkillRanks" | "concentration" | "cl"
  • Returns "fort" | "ref" | "will" | "skills" | "attack" | "damage" | "acpA" | "acpS" | "mDexA" | "mDexS" | "str" | "dex" | "con" | "int" | "wis" | "cha" | "strMod" | "dexMod" | "conMod" | "intMod" | "wisMod" | "chaMod" | "unskills" | "carryStr" | "carryMult" | "strSkills" | "dexSkills" | "conSkills" | "intSkills" | "wisSkills" | "chaSkills" | "allChecks" | "strChecks" | "dexChecks" | "conChecks" | "intChecks" | "wisChecks" | "chaChecks" | "landSpeed" | "climbSpeed" | "swimSpeed" | "burrowSpeed" | "flySpeed" | "allSpeeds" | "ac" | "aac" | "sac" | "nac" | "tac" | "ffac" | "bab" | "~attackCore" | "mattack" | "rattack" | "wdamage" | "sdamage" | "critConfirm" | "allSavingThrows" | "cmb" | "cmd" | "ffcmd" | "init" | "mhp" | "wounds" | "vigor" | "spellResist" | "bonusFeats" | "bonusSkillRanks" | "concentration" | "cl"

  • get defaultData(): {
        _id: string;
        flavor: undefined;
        formula: string;
        modifier: string;
        operator: string;
        priority: number;
        subTarget: string;
        value: number;
    }
  • Returns {
        _id: string;
        flavor: undefined;
        formula: string;
        modifier: string;
        operator: string;
        priority: number;
        subTarget: string;
        value: number;
    }

    • _id: string
    • flavor: undefined
    • formula: string
    • modifier: string
    • operator: string
    • priority: number
    • subTarget: string
    • value: number

Methods

  • Internal

    Safely apply this change to an actor, catching any errors.

    Parameters

    • actor: ActorPF

      The actor to apply the change's data to.

    • Optional targets: string[] = null

      Property paths to target on the actor's data.

    • Optional options: {
          applySourceInfo: undefined | boolean;
      } = {}

      Optional options to change the behavior of this function.

      • applySourceInfo: undefined | boolean

        Whether to add the changes to the actor's source information.

    Returns void

  • Applies this change to an actor.

    Parameters

    • actor: ActorPF

      The actor to apply the change's data to.

    • Optional targets: string[] = null

      Property paths to target on the actor's data.

    • Optional options: {
          applySourceInfo: undefined | boolean;
      } = {}

      Optional options to change the behavior of this function.

      • applySourceInfo: undefined | boolean

        Whether to add the changes to the actor's source information.

    Returns void

  • Applies this change's info to an actor's sourceInfo. Info is only added if either the modifier type allows stacking or the value is higher than the previous value. If the modifier type is not stacking and this change's info is added, existing and now ineffective info entries are removed.

    Parameters

    • actor: ActorPF

      The actor to apply the change's data to. returns {void}

    Returns void

  • Creates a change.

    Parameters

    • data: object[]

      Data to initialize the change(s) with.

    • context: {
          parent: undefined | ItemPF;
      }

      An object containing context information.

      • parent: undefined | ItemPF

        The parent entity to create the change within.

    Returns Promise<any[]>

    The resulting changes, or an empty array if nothing was created.

Generated using TypeDoc