handle giveKeyChainTriggeredMessage with ChainStage = -1
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Build / build (pull_request) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Build / build (pull_request) Has been cancelled
				
			e.g. for railjack build quest, the initial inbox message is sent like this. no 'm' needs to be set to true for it.
This commit is contained in:
		
							parent
							
								
									ef1922146a
								
							
						
					
					
						commit
						a539b07502
					
				@ -83,11 +83,13 @@ export const updateQuestStage = (
 | 
				
			|||||||
            `Quest stage index mismatch: stage is ${ChainStage} but array size is ${quest.Progress.length}`
 | 
					            `Quest stage index mismatch: stage is ${ChainStage} but array size is ${quest.Progress.length}`
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    if (ChainStage >= 0) {
 | 
				
			||||||
        const questStage = quest.Progress[ChainStage]; // guaranteed in-bounds now
 | 
					        const questStage = quest.Progress[ChainStage]; // guaranteed in-bounds now
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        for (const [key, value] of Object.entries(questStageUpdate) as [keyof IQuestStage, number | boolean | any[]][]) {
 | 
					        for (const [key, value] of Object.entries(questStageUpdate) as [keyof IQuestStage, number | boolean | any[]][]) {
 | 
				
			||||||
            (questStage[key] as any) = value;
 | 
					            (questStage[key] as any) = value;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const addQuestKey = (
 | 
					export const addQuestKey = (
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user