forked from OpenWF/SpaceNinjaServer
		
	fix: avoid addition by undefined when adding skill points (#2108)
Reviewed-on: OpenWF/SpaceNinjaServer#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:
		
							parent
							
								
									32f4c5105a
								
							
						
					
					
						commit
						8f02bd1509
					
				@ -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": {
 | 
			
		||||
 | 
			
		||||
@ -96,7 +96,7 @@ export type IMissionInventoryUpdateRequest = {
 | 
			
		||||
    FpsSamples: number;
 | 
			
		||||
    EvolutionProgress?: IEvolutionProgress[];
 | 
			
		||||
    FocusXpIncreases?: number[];
 | 
			
		||||
    PlayerSkillGains: IPlayerSkills;
 | 
			
		||||
    PlayerSkillGains: Partial<IPlayerSkills>;
 | 
			
		||||
    CustomMarkers?: ICustomMarkers[];
 | 
			
		||||
    LoreFragmentScans?: ILoreFragmentScan[];
 | 
			
		||||
    VoidTearParticipantsCurrWave?: {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user