fix: don't override TauntHistory with skipAllDialogue (#2979)
Older versions used this for more than just Maroo's dialogue so we might be breaking stuff there Reviewed-on: #2979 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
							
								
									4d93dc80dc
								
							
						
					
					
						commit
						5e455d1e90
					
				@ -310,12 +310,13 @@ export const getInventoryResponse = async (
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (inventory.skipAllDialogue) {
 | 
					    if (inventory.skipAllDialogue) {
 | 
				
			||||||
        inventoryResponse.TauntHistory = [
 | 
					        inventoryResponse.TauntHistory ??= [];
 | 
				
			||||||
            {
 | 
					        if (!inventoryResponse.TauntHistory.find(x => x.node == "TreasureTutorial")) {
 | 
				
			||||||
 | 
					            inventoryResponse.TauntHistory.push({
 | 
				
			||||||
                node: "TreasureTutorial",
 | 
					                node: "TreasureTutorial",
 | 
				
			||||||
                state: "TS_COMPLETED"
 | 
					                state: "TS_COMPLETED"
 | 
				
			||||||
 | 
					            });
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        ];
 | 
					 | 
				
			||||||
        for (const str of allDialogue) {
 | 
					        for (const str of allDialogue) {
 | 
				
			||||||
            addString(inventoryResponse.NodeIntrosCompleted, str);
 | 
					            addString(inventoryResponse.NodeIntrosCompleted, str);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user