Merge pull request #3 from garrettjoecox/get-item-rework-rando-next-fanfare-fix

Move check for gRandoQuestItemFanfares into MOD_NONE block within Audio_PlayFanfare_Rando
This commit is contained in:
Christopher Leggett 2022-08-15 18:36:23 -04:00 committed by GitHub
commit eccdab292d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3916,12 +3916,6 @@ void Audio_PlayFanfare_Rando(GetItemEntry getItem) {
if (getItemId == GI_HEART_PIECE_WIN && ((gSaveContext.inventory.questItems & 0xF0000000) == 0x40000000)) {
temp1 = NA_BGM_HEART_GET | 0x900;
}
Audio_PlayFanfare(temp1);
}
} else if (getItem.modIndex == MOD_RANDOMIZER) {
if ((getItemId >= RG_BOTTLE_WITH_RED_POTION && getItemId <= RG_BOTTLE_WITH_BIG_POE) || (getItemId >= RG_DEKU_TREE_MAP && getItemId <= RG_GANONS_CASTLE_SMALL_KEY)) {
temp1 = NA_BGM_ITEM_GET | 0x900;
}
// If the setting is toggled on and we get special quest items (longer fanfares):
if (CVar_GetS32("gRandoQuestItemFanfares", 0) != 0) {
// If we get a medallion, play the "get a medallion" fanfare
@ -3939,6 +3933,12 @@ void Audio_PlayFanfare_Rando(GetItemEntry getItem) {
}
Audio_PlayFanfare(temp1);
}
} else if (getItem.modIndex == MOD_RANDOMIZER) {
if ((getItemId >= RG_BOTTLE_WITH_RED_POTION && getItemId <= RG_BOTTLE_WITH_BIG_POE) || (getItemId >= RG_DEKU_TREE_MAP && getItemId <= RG_GANONS_CASTLE_SMALL_KEY)) {
temp1 = NA_BGM_ITEM_GET | 0x900;
}
Audio_PlayFanfare(temp1);
}
}
void func_800F3F3C(u8 arg0) {