Skip to main content
Deno 2 is finally here 🎉️
Learn more
class HealthController
import { HealthController } from "https://deno.land/x/sptaki@1.2.0/controllers/HealthController.d.ts";

Constructors

new
HealthController(
logger: ILogger,
jsonUtil: JsonUtil,
eventOutputHolder: EventOutputHolder,
itemHelper: ItemHelper,
paymentService: PaymentService,
inventoryHelper: InventoryHelper,
localisationService: LocalisationService,
httpResponse: HttpResponseUtil,
healthHelper: HealthHelper,
)

Properties

protected
eventOutputHolder: EventOutputHolder
protected
healthHelper: HealthHelper
protected
httpResponse: HttpResponseUtil
protected
inventoryHelper: InventoryHelper
protected
itemHelper: ItemHelper
protected
jsonUtil: JsonUtil
protected
localisationService: LocalisationService
protected
logger: ILogger
protected
paymentService: PaymentService

Methods

applyWorkoutChanges(
pmcData: IPmcData,
sessionId: string,
): void

applies skills from hideout workout.

healthTreatment(
pmcData: IPmcData,
healthTreatmentRequest: IHealthTreatmentRequestData,
sessionID: string,
): IItemEventRouterResponse

Handle RestoreHealth event Occurs on post-raid healing page

Handle Eat event Consume food/water outside of a raid

When healing in menu

saveVitality(
pmcData: IPmcData,
sessionID: string,
addEffects?: boolean,
deleteExistingEffects?: boolean,
): void

stores in-raid player health