From dd761295fc7a6ba022684e417c96e5bcc352a8ba Mon Sep 17 00:00:00 2001 From: Sarge-117 Date: Wed, 13 Jul 2022 13:34:01 -0700 Subject: [PATCH] Add logic to also check for a toggle setting Added && for the gRandoFanfareByItemType to allow this to be a toggle setting --- soh/src/overlays/actors/ovl_player_actor/z_player.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soh/src/overlays/actors/ovl_player_actor/z_player.c b/soh/src/overlays/actors/ovl_player_actor/z_player.c index b78a8cce3..073a25f0b 100644 --- a/soh/src/overlays/actors/ovl_player_actor/z_player.c +++ b/soh/src/overlays/actors/ovl_player_actor/z_player.c @@ -12677,8 +12677,8 @@ s32 func_8084DFF4(GlobalContext* globalCtx, Player* this) { } // In Rando, if we get special quest items (medallions/stones/songs), play their respective unique fanfares - // instead of the default "get item" fanfare - if (gSaveContext.n64ddFlag) { + // instead of the default "get item" fanfare (if we have the setting toggled on) + if (gSaveContext.n64ddFlag && CVar_GetS32("gRandoFanfareByItemType", 0)) { // If the item we're getting is a medallion, play the "get a medallion" fanfare if ((this->getItemId == GI_MEDALLION_FOREST) || (this->getItemId == GI_MEDALLION_FIRE) || (this->getItemId == GI_MEDALLION_WATER) || (this->getItemId == GI_MEDALLION_SHADOW) ||