forked from OpenWF/SpaceNinjaServer
		
	fix: being unable to visit Palladino in Iron Wake despite completeAllQuests (#564)
This commit is contained in:
		
							parent
							
								
									76964585eb
								
							
						
					
					
						commit
						abc3bd8624
					
				@ -70,15 +70,22 @@ const inventoryController: RequestHandler = async (request, response) => {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    if (config.completeAllQuests) {
 | 
					    if (config.completeAllQuests) {
 | 
				
			||||||
        for (const quest of inventoryResponse.QuestKeys) {
 | 
					        for (const quest of inventoryResponse.QuestKeys) {
 | 
				
			||||||
 | 
					            quest.unlock = true;
 | 
				
			||||||
            quest.Completed = true;
 | 
					            quest.Completed = true;
 | 
				
			||||||
            quest.Progress = [
 | 
					
 | 
				
			||||||
                {
 | 
					            let numStages = 1;
 | 
				
			||||||
 | 
					            if (quest.ItemType in ExportKeys && "chainStages" in ExportKeys[quest.ItemType]) {
 | 
				
			||||||
 | 
					                numStages = ExportKeys[quest.ItemType].chainStages!.length;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            quest.Progress = [];
 | 
				
			||||||
 | 
					            for (let i = 0; i != numStages; ++i) {
 | 
				
			||||||
 | 
					                quest.Progress.push({
 | 
				
			||||||
                    c: 0,
 | 
					                    c: 0,
 | 
				
			||||||
                    i: false,
 | 
					                    i: false,
 | 
				
			||||||
                    m: false,
 | 
					                    m: false,
 | 
				
			||||||
                    b: []
 | 
					                    b: []
 | 
				
			||||||
                }
 | 
					                });
 | 
				
			||||||
            ];
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        inventoryResponse.ArchwingEnabled = true;
 | 
					        inventoryResponse.ArchwingEnabled = true;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user