From c9cbe416d8ae6de7317605c757310dd0e06b6e7c Mon Sep 17 00:00:00 2001 From: robojumper Date: Mon, 12 May 2025 00:46:01 +0200 Subject: [PATCH] Use item enum --- src/toBeSorted/fi_context.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/toBeSorted/fi_context.cpp b/src/toBeSorted/fi_context.cpp index 7a5831f8..47a76c94 100644 --- a/src/toBeSorted/fi_context.cpp +++ b/src/toBeSorted/fi_context.cpp @@ -204,13 +204,14 @@ s16 FiContext::getObjective() { } if (!StoryflagManager::sInstance->getCounterOrFlag(21)) { - if (ItemflagManager::sInstance->getFlagDirect(0xC5) && !ItemflagManager::sInstance->getFlagDirect(0xC6)) { + if (ItemflagManager::sInstance->getFlagDirect(ITEM_LIFE_TREE_SEED) && + !ItemflagManager::sInstance->getFlagDirect(ITEM_LIFE_TREE_FRUIT)) { // "I project that the soil in Lanayru Province will not provide enough nourishment for the Life Tree // Seedling..." return 90; } - if (ItemflagManager::sInstance->getFlagDirect(0xC6)) { + if (ItemflagManager::sInstance->getFlagDirect(ITEM_LIFE_TREE_FRUIT)) { // "Master, I recommend you take the Life Tree Fruit to the Thunder Dragon..." return 91; }