Removes some magic numbers

This commit is contained in:
Christopher Leggett 2022-08-25 14:39:12 -04:00
parent efd4ceb636
commit 3da197f0cd
No known key found for this signature in database
GPG Key ID: 7093AE5FF7037D79
3 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ typedef enum {
TEXT_RED_RUPEE = 0xF0,
TEXT_PURPLE_RUPEE = 0xF1,
TEXT_HUGE_RUPEE = 0xF2,
TEXT_BEAN_SALESEMAN = 0x405E
TEXT_BEAN_SALESMAN = 0x405E
} TextIDs;
#ifdef __cplusplus

View File

@ -3741,7 +3741,7 @@ void CreateScrubMessages() {
});
}
customMessageManager->CreateMessage(
Randomizer::scrubMessageTableID, 0x405E,
Randomizer::scrubMessageTableID, TEXT_BEAN_SALESMAN,
{
TEXTBOX_TYPE_BLACK,
TEXTBOX_POS_BOTTOM,

View File

@ -1727,8 +1727,8 @@ extern "C" int CustomMessage_RetrieveIfExists(GlobalContext* globalCtx) {
// In rando, replace Navi's general overworld hints with rando-related gameplay tips
} else if (CVar_GetS32("gRandoRelevantNavi", 1) && textId >= 0x0140 && textId <= 0x015F) {
messageEntry = Randomizer_GetNaviMessage();
} else if (Randomizer_GetSettingValue(RSK_SHUFFLE_MAGIC_BEANS) && textId == TEXT_BEAN_SALESEMAN) {
messageEntry = CustomMessageManager::Instance->RetrieveMessage(Randomizer::scrubMessageTableID, TEXT_BEAN_SALESEMAN);
} else if (Randomizer_GetSettingValue(RSK_SHUFFLE_MAGIC_BEANS) && textId == TEXT_BEAN_SALESMAN) {
messageEntry = CustomMessageManager::Instance->RetrieveMessage(Randomizer::scrubMessageTableID, TEXT_BEAN_SALESMAN);
}
}
if (textId == TEXT_GS_NO_FREEZE || textId == TEXT_GS_FREEZE) {