Merge branch '310-dev' of https://dev.sp-tarkov.com/SPT/Server into 310-dev
This commit is contained in:
commit
bdc167a10e
@ -95,6 +95,8 @@ export class ProfileController
|
||||
prevexp: 0,
|
||||
nextlvl: 0,
|
||||
maxlvl: maxlvl,
|
||||
edition: profile.info?.edition ?? "",
|
||||
profileId: profile.info?.id ?? "",
|
||||
sptData: this.profileHelper.getDefaultSptDataObject(),
|
||||
};
|
||||
}
|
||||
@ -112,6 +114,8 @@ export class ProfileController
|
||||
: this.profileHelper.getExperience(currlvl),
|
||||
nextlvl: nextlvl,
|
||||
maxlvl: maxlvl,
|
||||
edition: profile.info?.edition ?? "",
|
||||
profileId: profile.info?.id ?? "",
|
||||
sptData: profile.spt,
|
||||
};
|
||||
}
|
||||
|
@ -1,3 +1,5 @@
|
||||
import { Spt } from "../profile/ISptProfile"
|
||||
|
||||
export interface IMiniProfile
|
||||
{
|
||||
username: string
|
||||
@ -8,10 +10,7 @@ export interface IMiniProfile
|
||||
prevexp: number
|
||||
nextlvl: number
|
||||
maxlvl: number
|
||||
sptData: SPTData
|
||||
}
|
||||
|
||||
export interface SPTData
|
||||
{
|
||||
version: string
|
||||
edition: string
|
||||
profileId: string
|
||||
sptData: Spt
|
||||
}
|
||||
|
@ -213,11 +213,11 @@ export interface Spt
|
||||
/** What mods has this profile loaded at any point in time */
|
||||
mods?: ModDetails[]
|
||||
/** What gifts has this profile received and how many */
|
||||
receivedGifts: ReceivedGift[]
|
||||
receivedGifts?: ReceivedGift[]
|
||||
/** item TPLs blacklisted from being sold on flea for this profile */
|
||||
blacklistedItemTpls?: string[]
|
||||
/** key: daily type */
|
||||
freeRepeatableRefreshUsedCount: Record<string, number>
|
||||
freeRepeatableRefreshUsedCount?: Record<string, number>
|
||||
}
|
||||
|
||||
export interface ModDetails
|
||||
|
Loading…
Reference in New Issue
Block a user