[Fix] Allow turning in Ruto's letter after rescuing her (#1999)

This commit is contained in:
Adam Bird 2022-11-22 03:17:51 -05:00 committed by GitHub
parent 15eb293e61
commit c87f066848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,10 @@ u16 EnKz_GetTextNoMaskChild(PlayState* play, EnKz* this) {
if ((gSaveContext.n64ddFlag && Flags_GetRandomizerInf(RAND_INF_DUNGEONS_DONE_JABU_JABUS_BELLY)) ||
(!gSaveContext.n64ddFlag && CHECK_QUEST_ITEM(QUEST_ZORA_SAPPHIRE))) {
// Allow turning in Ruto's letter even if you have already rescued her
if (gSaveContext.n64ddFlag && !(gSaveContext.eventChkInf[3] & 8)) {
player->exchangeItemId = EXCH_ITEM_LETTER_RUTO;
}
return 0x402B;
} else if (gSaveContext.eventChkInf[3] & 8) {
return 0x401C;