From 531b346fc9f78881f968321010ea4de3ee362fe3 Mon Sep 17 00:00:00 2001 From: Pepper0ni <93387759+Pepper0ni@users.noreply.github.com> Date: Sun, 2 Jul 2023 19:50:51 +0100 Subject: [PATCH] Add exact item and check to the spoiler log for WotH hints (#3043) --- soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp b/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp index 098652f10..cb87bc115 100644 --- a/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp +++ b/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp @@ -766,9 +766,9 @@ static void WriteHints(int language) { std::string textStr = AutoFormatHintTextString(unformattedHintTextString); jsonData["hints"][location->GetName()]["hint"] = textStr; jsonData["hints"][location->GetName()]["type"] = hintTypeNames.find(hintType)->second; - if (hintType == HINT_TYPE_ITEM || hintType == HINT_TYPE_NAMED_ITEM) { + if (hintType == HINT_TYPE_ITEM || hintType == HINT_TYPE_NAMED_ITEM || hintType == HINT_TYPE_WOTH) { jsonData["hints"][location->GetName()]["item"] = hintedLocation->GetPlacedItemName().GetEnglish(); - if (hintType != HINT_TYPE_NAMED_ITEM) { + if (hintType != HINT_TYPE_NAMED_ITEM || hintType == HINT_TYPE_WOTH) { jsonData["hints"][location->GetName()]["location"] = hintedLocation->GetName(); } }