Add logic to also check for a toggle setting

Added && for the gRandoFanfareByItemType to allow this to be a toggle setting
This commit is contained in:
Sarge-117 2022-07-13 13:34:01 -07:00
parent d424ee6fa8
commit dd761295fc

View File

@ -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 // In Rando, if we get special quest items (medallions/stones/songs), play their respective unique fanfares
// instead of the default "get item" fanfare // instead of the default "get item" fanfare (if we have the setting toggled on)
if (gSaveContext.n64ddFlag) { if (gSaveContext.n64ddFlag && CVar_GetS32("gRandoFanfareByItemType", 0)) {
// If the item we're getting is a medallion, play the "get a medallion" fanfare // 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) || if ((this->getItemId == GI_MEDALLION_FOREST) || (this->getItemId == GI_MEDALLION_FIRE) ||
(this->getItemId == GI_MEDALLION_WATER) || (this->getItemId == GI_MEDALLION_SHADOW) || (this->getItemId == GI_MEDALLION_WATER) || (this->getItemId == GI_MEDALLION_SHADOW) ||