Pathfinder 1e for Foundry VTT
    Preparing search index...

    Function migrateItemData

    • Migrate a single Item document to incorporate latest data model changes

      Parameters

      • itemData: ItemData

        The item data to derive an update from

      • actor: any = null

        Parent actor document

      • Optionaloptions: { _depth?: number; item?: any; marker?: boolean; prune: any } = {}

        Additional options

        • Optional_depth?: number

          Internal only. Recursion depth tracking.

        • Optionalitem?: any

          Item document

        • Optionalmarker?: boolean

          Add migration marker

        • prune: any

      Returns object

      • The updateData to apply