fix: don't override TauntHistory with skipAllDialogue (#2979)
Some checks failed
Build Docker image / docker (push) Waiting to run
Build / build (push) Has been cancelled

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:
Sainan 2025-11-02 23:28:31 -08:00 committed by Sainan
parent 4d93dc80dc
commit 5e455d1e90

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);
}