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

Save effects to profile Works by removing all effects and adding them back from profile Removes empty 'Effects' objects if found

Parameters

pmcData: IPmcData

Player profile

sessionId: string

Session id

bodyPartsWithEffects: Effects

dict of body parts with effects that should be added to profile

optional
deleteExistingEffects: boolean

Should effects be added back to profile