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

Create insurance equipment packages that should be sent to the user. The packages should contain items that have been lost in a raid and should be returned to the player through the insurance system.

NOTE: We do not have data on items that were dropped in a raid. This means we have to pull item data from the profile at the start of the raid to return to the player in insurance. Because of this, the item positioning may differ from the position the item was in when the player died. Apart from removing all positioning, this is the best we can do. >:{}

Parameters

pmcData: IPmcData

Player profile

Post-raid data

preRaidGear: Item[]

Pre-raid data

sessionID: string

Session id

playerDied: boolean

Did player die in raid

Returns

Array of insured items lost in raid