Skip to main content
The Deno 2 Release Candidate is here
Learn more
method InsuranceController.prototype.removeNonModdableAttachments
import { InsuranceController } from "https://deno.land/x/sptaki@1.2.0/controllers/InsuranceController.d.ts";

Remove attachments that can not be moddable in-raid from the parentAttachmentsMap. If no moddable attachments remain, the parent is removed from the map as well.

Parameters

parentAttachmentsMap: Map<string, Item[]>
  • A Map object containing parent item IDs to arrays of their attachment items.
itemsMap: Map<string, Item>
  • A Map object for quick item look-up by item ID.

Returns

Map<string, Item[]>

A Map object containing parent item IDs to arrays of their attachment items which are not moddable in-raid.