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

    Function migrateItemData

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

      Parameters

      • itemData: object

        The item data to derive an update from

      • actor: Actor<"base" | ModuleSubType> = null

        Parent actor document

      • Optionaloptions: {
            _depth?: number;
            item?: Item<"base" | ModuleSubType>;
            marker?: boolean;
            prune: any;
        } = {}

        Additional options

        • Optional_depth?: number

          Internal only. Recursion depth tracking.

        • Optionalitem?: Item<"base" | ModuleSubType>

          Item document

        • Optionalmarker?: boolean

          Add migration marker

        • prune: any

      Returns object

      • The updateData to apply