mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
Updated client/trading/customization/storage
to better match live
This commit is contained in:
parent
34b5608deb
commit
4340d98058
@ -5,8 +5,6 @@ import type { ICustomisationStorage } from "@spt/models/eft/common/tables/ICusto
|
|||||||
import type { ISuit } from "@spt/models/eft/common/tables/ITrader";
|
import type { ISuit } from "@spt/models/eft/common/tables/ITrader";
|
||||||
import type { IBuyClothingRequestData } from "@spt/models/eft/customization/IBuyClothingRequestData";
|
import type { IBuyClothingRequestData } from "@spt/models/eft/customization/IBuyClothingRequestData";
|
||||||
import type { ICustomizationSetRequest } from "@spt/models/eft/customization/ICustomizationSetRequest";
|
import type { ICustomizationSetRequest } from "@spt/models/eft/customization/ICustomizationSetRequest";
|
||||||
import type { IGetSuitsResponse } from "@spt/models/eft/customization/IGetSuitsResponse";
|
|
||||||
import type { IWearClothingRequestData } from "@spt/models/eft/customization/IWearClothingRequestData";
|
|
||||||
import type { IHideoutCustomisation } from "@spt/models/eft/hideout/IHideoutCustomisation";
|
import type { IHideoutCustomisation } from "@spt/models/eft/hideout/IHideoutCustomisation";
|
||||||
import type { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
import type { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import type { IItemEventRouterResponse } from "@spt/models/eft/itemEvent/IItemEventRouterResponse";
|
import type { IItemEventRouterResponse } from "@spt/models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
@ -26,9 +24,12 @@ export class CustomizationCallbacks {
|
|||||||
* Handle client/trading/customization/storage
|
* Handle client/trading/customization/storage
|
||||||
* @returns IGetSuitsResponse
|
* @returns IGetSuitsResponse
|
||||||
*/
|
*/
|
||||||
public getSuits(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGetSuitsResponse> {
|
public getCustomisationUnlocks(
|
||||||
const result: IGetSuitsResponse = { _id: sessionID, suites: this.saveServer.getProfile(sessionID).suits };
|
url: string,
|
||||||
return this.httpResponse.getBody(result);
|
info: IEmptyRequestData,
|
||||||
|
sessionID: string,
|
||||||
|
): IGetBodyResponseData<ICustomisationStorage[]> {
|
||||||
|
return this.httpResponse.getBody(this.saveServer.getProfile(sessionID).customisationUnlocks);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -17,8 +17,8 @@ export class CustomizationStaticRouter extends StaticRouter {
|
|||||||
info: any,
|
info: any,
|
||||||
sessionID: string,
|
sessionID: string,
|
||||||
output: string,
|
output: string,
|
||||||
): Promise<IGetBodyResponseData<IGetSuitsResponse>> => {
|
): Promise<IGetBodyResponseData<ICustomisationStorage[]>> => {
|
||||||
return this.customizationCallbacks.getSuits(url, info, sessionID);
|
return this.customizationCallbacks.getCustomisationUnlocks(url, info, sessionID);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
new RouteAction(
|
new RouteAction(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user