Skip to main content
The Deno 2 Release Candidate is here
Learn more
method ItemHelper.prototype.replaceIDs
Re-export
import { ItemHelper } from "https://deno.land/x/sptaki@1.2.0/helpers/mod.ts";

Regenerate all GUIDs with new IDs, for the exception of special item types (e.g. quest, sorting table, etc.) This function will not mutate the original items array, but will return a new array with new GUIDs.

Parameters

originalItems: Item[]

Items to adjust the IDs of

optional
pmcData: IPmcData | null

Player profile

optional
insuredItems: InsuredItem[] | null

Insured items that should not have their IDs replaced

optional
fastPanel: any

Quick slot panel

Returns

Item[]