mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-31 00:13:58 +01:00
Use song constants
This commit is contained in:
parent
bc60000755
commit
4e2886db81
@ -1830,7 +1830,7 @@ static void FreeRestoreBattleData(void)
|
|||||||
gScanlineEffect.state = 3;
|
gScanlineEffect.state = 3;
|
||||||
gMain.inBattle = 0;
|
gMain.inBattle = 0;
|
||||||
ZeroEnemyPartyMons();
|
ZeroEnemyPartyMons();
|
||||||
m4aSongNumStop(0x5A);
|
m4aSongNumStop(SE_HINSI);
|
||||||
FreeMonSpritesGfx();
|
FreeMonSpritesGfx();
|
||||||
FreeBattleSpritesData();
|
FreeBattleSpritesData();
|
||||||
FreeBattleResources();
|
FreeBattleResources();
|
||||||
@ -5224,7 +5224,7 @@ static void ReturnFromBattleToOverworld(void)
|
|||||||
SetRoamerInactive();
|
SetRoamerInactive();
|
||||||
}
|
}
|
||||||
|
|
||||||
m4aSongNumStop(0x5A);
|
m4aSongNumStop(SE_HINSI);
|
||||||
SetMainCallback2(gMain.savedCallback);
|
SetMainCallback2(gMain.savedCallback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3357,7 +3357,7 @@ static void atk23_getexp(void)
|
|||||||
if (!(gBattleTypeFlags & BATTLE_TYPE_TRAINER) && gBattleMons[0].hp && !gBattleStruct->wildVictorySong)
|
if (!(gBattleTypeFlags & BATTLE_TYPE_TRAINER) && gBattleMons[0].hp && !gBattleStruct->wildVictorySong)
|
||||||
{
|
{
|
||||||
BattleStopLowHpSound();
|
BattleStopLowHpSound();
|
||||||
PlayBGM(0x161);
|
PlayBGM(MUS_KACHI2);
|
||||||
gBattleStruct->wildVictorySong++;
|
gBattleStruct->wildVictorySong++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -574,10 +574,10 @@ static void Task_EggHatchPlayBGM(u8 taskID)
|
|||||||
play_some_sound();
|
play_some_sound();
|
||||||
}
|
}
|
||||||
if (gTasks[taskID].data[0] == 1)
|
if (gTasks[taskID].data[0] == 1)
|
||||||
PlayBGM(376);
|
PlayBGM(MUS_ME_SHINKA);
|
||||||
if (gTasks[taskID].data[0] > 60)
|
if (gTasks[taskID].data[0] > 60)
|
||||||
{
|
{
|
||||||
PlayBGM(377);
|
PlayBGM(MUS_SHINKA);
|
||||||
DestroyTask(taskID);
|
DestroyTask(taskID);
|
||||||
// UB: task is destroyed, yet the value is incremented
|
// UB: task is destroyed, yet the value is incremented
|
||||||
}
|
}
|
||||||
|
@ -1825,7 +1825,7 @@ void sub_81C174C(u8 taskId)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PlaySE(0x20);
|
PlaySE(SE_HAZURE);
|
||||||
sub_81C18F4(taskId);
|
sub_81C18F4(taskId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
#include "gpu_regs.h"
|
#include "gpu_regs.h"
|
||||||
#include "trig.h"
|
#include "trig.h"
|
||||||
#include "constants/rgb.h"
|
#include "constants/rgb.h"
|
||||||
|
#include "constants/songs.h"
|
||||||
|
|
||||||
#define VERSION_BANNER_SHAPE 1
|
#define VERSION_BANNER_SHAPE 1
|
||||||
#define VERSION_BANNER_RIGHT_TILEOFFSET 64
|
#define VERSION_BANNER_RIGHT_TILEOFFSET 64
|
||||||
@ -574,7 +575,7 @@ void CB2_InitTitleScreen(void)
|
|||||||
| DISPCNT_OBJ_ON
|
| DISPCNT_OBJ_ON
|
||||||
| DISPCNT_WIN0_ON
|
| DISPCNT_WIN0_ON
|
||||||
| DISPCNT_OBJWIN_ON);
|
| DISPCNT_OBJWIN_ON);
|
||||||
m4aSongNumStart(0x19D);
|
m4aSongNumStart(MUS_TITLE3);
|
||||||
gMain.state = 5;
|
gMain.state = 5;
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user