Compare commits
	
		
			1 Commits
		
	
	
		
			827e224c3b
			...
			a539b07502
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| a539b07502 | 
@ -83,10 +83,12 @@ 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}`
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    const questStage = quest.Progress[ChainStage]; // guaranteed in-bounds now
 | 
					    if (ChainStage >= 0) {
 | 
				
			||||||
 | 
					        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;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user