0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00

Merge branch 'master' of https://dev.sp-tarkov.com/SPT/Server into 310-dev

# Conflicts:
#	project/assets/database/globals.json
This commit is contained in:
Dev 2024-07-07 14:13:35 +01:00
commit 57100544c9
50 changed files with 74 additions and 65 deletions

View File

@ -168,6 +168,13 @@
"season": "None", "season": "None",
"startTimestamp": 1341615600000, "startTimestamp": 1341615600000,
"endTimestamp": "", "endTimestamp": "",
"yearly": false
},
"6672ec2a2b6f3b71be794cc5": {
"name": "Key to salvation",
"season": "None",
"startTimestamp": 1341615600000,
"endTimestamp": "",
"yearly": false "yearly": false
} }
}, },

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -27560,7 +27560,7 @@
"LastTimePlayedAsSavage": 0, "LastTimePlayedAsSavage": 0,
"Level": 1, "Level": 1,
"LowerNickname": "__REPLACEME__", "LowerNickname": "__REPLACEME__",
"MemberCategory": 1024, "MemberCategory": 1026,
"isMigratedSkills": false, "isMigratedSkills": false,
"SelectedMemberCategory": 1024, "SelectedMemberCategory": 1024,
"NeedWipeOptions": [], "NeedWipeOptions": [],
@ -31900,7 +31900,7 @@
"LastTimePlayedAsSavage": 0, "LastTimePlayedAsSavage": 0,
"Level": 1, "Level": 1,
"LowerNickname": "__REPLACEME__", "LowerNickname": "__REPLACEME__",
"MemberCategory": 1024, "MemberCategory": 1026,
"isMigratedSkills": false, "isMigratedSkills": false,
"SelectedMemberCategory": 1024, "SelectedMemberCategory": 1024,
"NeedWipeOptions": [], "NeedWipeOptions": [],

View File

@ -167,10 +167,10 @@ export class ProfileCallbacks
url: string, url: string,
info: IGetProfileSettingsRequest, info: IGetProfileSettingsRequest,
sessionId: string, sessionId: string,
): IGetBodyResponseData<string> ): IGetBodyResponseData<boolean>
{ {
this.profileController.setChosenProfileIcon(sessionId, info);
return this.httpResponse.emptyResponse(); return this.httpResponse.getBody(this.profileController.setChosenProfileIcon(sessionId, info));
} }
/** /**

View File

@ -489,14 +489,15 @@ export class ProfileController
/** /**
* Handle client/profile/settings * Handle client/profile/settings
*/ */
public setChosenProfileIcon(sessionId: string, request: IGetProfileSettingsRequest): void public setChosenProfileIcon(sessionId: string, request: IGetProfileSettingsRequest): boolean
{ {
const profileToUpdate = this.profileHelper.getPmcProfile(sessionId); const profileToUpdate = this.profileHelper.getPmcProfile(sessionId);
if (!profileToUpdate) if (!profileToUpdate)
{ {
return; return false;
} }
profileToUpdate.Info.SelectedMemberCategory = request.memberCategory; profileToUpdate.Info.SelectedMemberCategory = request.memberCategory;
return true;
} }
} }

View File

@ -483,6 +483,7 @@ export interface Slot
export interface SlotProps export interface SlotProps
{ {
filters: SlotFilter[] filters: SlotFilter[]
MaxStackCount?: number
} }
export interface SlotFilter export interface SlotFilter
@ -505,7 +506,7 @@ export interface StackSlot
_max_count: number _max_count: number
_props: StackSlotProps _props: StackSlotProps
_proto: string _proto: string
upd: any upd?: any
} }
export interface StackSlotProps export interface StackSlotProps

View File

@ -126,7 +126,7 @@ export class ProfileStaticRouter extends StaticRouter
info: any, info: any,
sessionID: string, sessionID: string,
output: string, output: string,
): Promise<IGetBodyResponseData<string>> => ): Promise<IGetBodyResponseData<boolean>> =>
{ {
return this.profileCallbacks.getProfileSettings(url, info, sessionID); return this.profileCallbacks.getProfileSettings(url, info, sessionID);
}, },