diff --git a/project/src/controllers/HealthController.ts b/project/src/controllers/HealthController.ts index 786e4ae0..7e7e9196 100644 --- a/project/src/controllers/HealthController.ts +++ b/project/src/controllers/HealthController.ts @@ -2,10 +2,10 @@ import { HealthHelper } from "@spt/helpers/HealthHelper"; import { InventoryHelper } from "@spt/helpers/InventoryHelper"; import { ItemHelper } from "@spt/helpers/ItemHelper"; import { IPmcData } from "@spt/models/eft/common/IPmcData"; +import { IBodyPartHealth } from "@spt/models/eft/common/tables/IBotBase"; import { IBodyPart, IHealthTreatmentRequestData } from "@spt/models/eft/health/IHealthTreatmentRequestData"; import { IOffraidEatRequestData } from "@spt/models/eft/health/IOffraidEatRequestData"; import { IOffraidHealRequestData } from "@spt/models/eft/health/IOffraidHealRequestData"; -import { ISyncHealthRequestData } from "@spt/models/eft/health/ISyncHealthRequestData"; import { IWorkoutData } from "@spt/models/eft/health/IWorkoutData"; import { IItemEventRouterResponse } from "@spt/models/eft/itemEvent/IItemEventRouterResponse"; import { IProcessBuyTradeRequestData } from "@spt/models/eft/trade/IProcessBuyTradeRequestData"; @@ -32,24 +32,6 @@ export class HealthController { @inject("PrimaryCloner") protected cloner: ICloner, ) {} - /** - * stores in-raid player health - * @param pmcData Player profile - * @param info Request data - * @param sessionID Player id - * @param addEffects Should effects found be added or removed from profile - * @param deleteExistingEffects Should all prior effects be removed before apply new ones - */ - public saveVitality( - pmcData: IPmcData, - info: ISyncHealthRequestData, - sessionID: string, - addEffects = true, - deleteExistingEffects = true, - ): void { - this.healthHelper.saveVitality(pmcData, info, sessionID, addEffects, deleteExistingEffects); - } - /** * When healing in menu * @param pmcData Player profile diff --git a/project/src/routers/static/HealthStaticRouter.ts b/project/src/routers/static/HealthStaticRouter.ts index 9294c491..b89be970 100644 --- a/project/src/routers/static/HealthStaticRouter.ts +++ b/project/src/routers/static/HealthStaticRouter.ts @@ -7,17 +7,6 @@ import { inject, injectable } from "tsyringe"; export class HealthStaticRouter extends StaticRouter { constructor(@inject("HealthCallbacks") protected healthCallbacks: HealthCallbacks) { super([ - new RouteAction( - "/player/health/sync", - async ( - url: string, - info: any, - sessionID: string, - output: string, - ): Promise> => { - return this.healthCallbacks.syncHealth(url, info, sessionID); - }, - ), new RouteAction( "/client/hideout/workout", async (