fix: avoid addition by undefined when adding skill points
All checks were successful
Build / build (pull_request) Successful in 45s
Build / build (push) Successful in 2m17s

This commit is contained in:
Sainan 2025-05-31 18:01:33 +02:00
parent 28da982c80
commit a82079c5c0
2 changed files with 3 additions and 3 deletions

View File

@ -326,8 +326,8 @@ export const addMissionInventoryUpdates = async (
break;
}
case "PlayerSkillGains": {
inventory.PlayerSkills.LPP_SPACE += value.LPP_SPACE;
inventory.PlayerSkills.LPP_DRIFTER += value.LPP_DRIFTER;
inventory.PlayerSkills.LPP_SPACE += value.LPP_SPACE ?? 0;
inventory.PlayerSkills.LPP_DRIFTER += value.LPP_DRIFTER ?? 0;
break;
}
case "CustomMarkers": {

View File

@ -96,7 +96,7 @@ export type IMissionInventoryUpdateRequest = {
FpsSamples: number;
EvolutionProgress?: IEvolutionProgress[];
FocusXpIncreases?: number[];
PlayerSkillGains: IPlayerSkills;
PlayerSkillGains: Partial<IPlayerSkills>;
CustomMarkers?: ICustomMarkers[];
LoreFragmentScans?: ILoreFragmentScan[];
VoidTearParticipantsCurrWave?: {