Update getDefaultCounters() to return data found from live profile

This commit is contained in:
Dev 2023-10-28 12:40:21 +01:00
parent 6e3e8f13d6
commit 48913e8707

View File

@ -191,6 +191,7 @@ export class ProfileHelper
level = expTable.length - 1; level = expTable.length - 1;
} }
// TODO: Replace with exp = expTable.slice(0, level).reduce((acc, curr) => acc + curr.exp, 0);
for (let i = 0; i < level; i++) for (let i = 0; i < level; i++)
{ {
exp += expTable[i].exp; exp += expTable[i].exp;
@ -246,12 +247,23 @@ export class ProfileHelper
return { return {
Eft: { Eft: {
CarriedQuestItems: [], CarriedQuestItems: [],
Victims: [], DamageHistory: {
TotalSessionExperience: 0, LethalDamagePart: "Head",
LastSessionDate: this.timeUtil.getTimestamp(), LethalDamage: undefined,
SessionCounters: { Items: [] }, BodyParts: <any>[]
},
DroppedItems: [],
ExperienceBonusMult: 0,
FoundInRaidItems: [],
LastPlayerState: undefined,
LastSessionDate: 0,
OverallCounters: { Items: [] }, OverallCounters: { Items: [] },
TotalInGameTime: 0 SessionCounters: { Items: [] },
SessionExperienceMult: 0,
SurvivorClass: "Unknown",
TotalInGameTime: 0,
TotalSessionExperience: 0,
Victims: []
} }
}; };
} }