fix: don't override TauntHistory with skipAllDialogue
All checks were successful
Build / build (pull_request) Successful in 1m1s

Older versions used this for more than just Maroo's dialogue so we might be breaking stuff there
This commit is contained in:
Sainan 2025-11-02 17:59:10 +01:00
parent 8bce83d14c
commit c45044df55

View File

@ -310,12 +310,13 @@ export const getInventoryResponse = async (
}
if (inventory.skipAllDialogue) {
inventoryResponse.TauntHistory = [
{
inventoryResponse.TauntHistory ??= [];
if (!inventoryResponse.TauntHistory.find(x => x.node == "TreasureTutorial")) {
inventoryResponse.TauntHistory.push({
node: "TreasureTutorial",
state: "TS_COMPLETED"
}
];
});
}
for (const str of allDialogue) {
addString(inventoryResponse.NodeIntrosCompleted, str);
}