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

Fix xp doubling on post-raid xp reward screen by sending a 'dummy' profile to the post-raid screen Server saves the post-raid changes prior to the xp screen getting the profile, this results in the xp screen using the now updated profile values as a base, meaning it shows x2 xp gained Instead, clone the post-raid profile (so we dont alter its values), apply the pre-raid xp values to the cloned objects and return Delete snapshot of pre-raid profile prior to returning profile data

Parameters

sessionId: string

Session id

output: IPmcData[]

pmc and scav profiles array

pmcProfile: IPmcData

post-raid pmc profile

scavProfile: IPmcData

post-raid scav profile

Returns

Updated profile array