fix: avoid addition by undefined when adding skill points (#2108)
All checks were successful
Build / build (push) Successful in 48s
Build Docker image / docker (push) Successful in 1m8s

Reviewed-on: #2108
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-06-01 03:12:14 -07:00 committed by Sainan
parent 32f4c5105a
commit 8f02bd1509
2 changed files with 3 additions and 3 deletions

View File

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

View File

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