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

Get count of items to remove from weapon (take into account trader + price of attachment)

Parameters

weightedAttachmentByPrice: Record<string, number>

Dict of item Tpls and thier rouble price

traderId: string

Trader attachment insured against

Returns

number

Attachment count to remove