Add define for using JP red coin sound (#489)

This commit is contained in:
Gregory Heskett
2022-09-21 11:58:25 -04:00
committed by GitHub
parent af0982e8d5
commit aa5df070c0
3 changed files with 13 additions and 10 deletions

View File

@@ -54,10 +54,15 @@ void bhv_red_coin_loop(void) {
spawn_orange_number(o->parentObj->oHiddenStarTriggerCounter, 0, 0, 0);
}
#ifdef JP_RED_COIN_SOUND
// For JP version, play an identical sound for all coins.
create_sound_spawner(SOUND_GENERAL_RED_COIN);
#else
// On all versions but the JP version, each coin collected plays a higher noise.
play_sound(SOUND_MENU_COLLECT_RED_COIN
+ (((u8) o->parentObj->oHiddenStarTriggerCounter - 1) << 16),
gGlobalSoundSource);
#endif
}
coin_collected();