Removed unused endpoint
This commit is contained in:
parent
a27e4fd334
commit
62c64b7480
@ -2,10 +2,10 @@ import { HealthHelper } from "@spt/helpers/HealthHelper";
|
|||||||
import { InventoryHelper } from "@spt/helpers/InventoryHelper";
|
import { InventoryHelper } from "@spt/helpers/InventoryHelper";
|
||||||
import { ItemHelper } from "@spt/helpers/ItemHelper";
|
import { ItemHelper } from "@spt/helpers/ItemHelper";
|
||||||
import { IPmcData } from "@spt/models/eft/common/IPmcData";
|
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 { IBodyPart, IHealthTreatmentRequestData } from "@spt/models/eft/health/IHealthTreatmentRequestData";
|
||||||
import { IOffraidEatRequestData } from "@spt/models/eft/health/IOffraidEatRequestData";
|
import { IOffraidEatRequestData } from "@spt/models/eft/health/IOffraidEatRequestData";
|
||||||
import { IOffraidHealRequestData } from "@spt/models/eft/health/IOffraidHealRequestData";
|
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 { IWorkoutData } from "@spt/models/eft/health/IWorkoutData";
|
||||||
import { IItemEventRouterResponse } from "@spt/models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "@spt/models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
import { IProcessBuyTradeRequestData } from "@spt/models/eft/trade/IProcessBuyTradeRequestData";
|
import { IProcessBuyTradeRequestData } from "@spt/models/eft/trade/IProcessBuyTradeRequestData";
|
||||||
@ -32,24 +32,6 @@ export class HealthController {
|
|||||||
@inject("PrimaryCloner") protected cloner: ICloner,
|
@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
|
* When healing in menu
|
||||||
* @param pmcData Player profile
|
* @param pmcData Player profile
|
||||||
|
@ -7,17 +7,6 @@ import { inject, injectable } from "tsyringe";
|
|||||||
export class HealthStaticRouter extends StaticRouter {
|
export class HealthStaticRouter extends StaticRouter {
|
||||||
constructor(@inject("HealthCallbacks") protected healthCallbacks: HealthCallbacks) {
|
constructor(@inject("HealthCallbacks") protected healthCallbacks: HealthCallbacks) {
|
||||||
super([
|
super([
|
||||||
new RouteAction(
|
|
||||||
"/player/health/sync",
|
|
||||||
async (
|
|
||||||
url: string,
|
|
||||||
info: any,
|
|
||||||
sessionID: string,
|
|
||||||
output: string,
|
|
||||||
): Promise<IGetBodyResponseData<string>> => {
|
|
||||||
return this.healthCallbacks.syncHealth(url, info, sessionID);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
new RouteAction(
|
new RouteAction(
|
||||||
"/client/hideout/workout",
|
"/client/hideout/workout",
|
||||||
async (
|
async (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user