Label remaining subs in battle_tower.c
This commit is contained in:
+14
-9
@@ -57,7 +57,7 @@ static u16 CalculateBoxMonChecksum(struct BoxPokemon *boxMon);
|
||||
static union PokemonSubstruct *GetSubstruct(struct BoxPokemon *boxMon, u32 personality, u8 substructType);
|
||||
static void EncryptBoxMon(struct BoxPokemon *boxMon);
|
||||
static void DecryptBoxMon(struct BoxPokemon *boxMon);
|
||||
static void sub_806E6CC(u8 taskId);
|
||||
static void Task_PlayMapChosenOrBattleBGM(u8 taskId);
|
||||
static bool8 ShouldGetStatBadgeBoost(u16 flagId, u8 battlerId);
|
||||
static u16 GiveMoveToBoxMon(struct BoxPokemon *boxMon, u16 move);
|
||||
static bool8 ShouldSkipFriendshipChange(void);
|
||||
@@ -2578,7 +2578,7 @@ void CreateMonWithEVSpreadNatureOTID(struct Pokemon *mon, u16 species, u8 level,
|
||||
CalculateMonStats(mon);
|
||||
}
|
||||
|
||||
void sub_80686FC(struct Pokemon *mon, struct BattleTowerPokemon *dest)
|
||||
void ConvertPokemonToBattleTowerPokemon(struct Pokemon *mon, struct BattleTowerPokemon *dest)
|
||||
{
|
||||
s32 i;
|
||||
u16 heldItem;
|
||||
@@ -2587,7 +2587,7 @@ void sub_80686FC(struct Pokemon *mon, struct BattleTowerPokemon *dest)
|
||||
heldItem = GetMonData(mon, MON_DATA_HELD_ITEM, NULL);
|
||||
|
||||
if (heldItem == ITEM_ENIGMA_BERRY)
|
||||
heldItem = 0;
|
||||
heldItem = ITEM_NONE;
|
||||
|
||||
dest->heldItem = heldItem;
|
||||
|
||||
@@ -6334,26 +6334,31 @@ void PlayMapChosenOrBattleBGM(u16 songId)
|
||||
PlayNewMapMusic(GetBattleBGM());
|
||||
}
|
||||
|
||||
void sub_806E694(u16 songId)
|
||||
// Identical to PlayMapChosenOrBattleBGM, but uses a task instead
|
||||
// Only used by Battle Dome
|
||||
#define tSongId data[0]
|
||||
void CreateTask_PlayMapChosenOrBattleBGM(u16 songId)
|
||||
{
|
||||
u8 taskId;
|
||||
|
||||
ResetMapMusic();
|
||||
m4aMPlayAllStop();
|
||||
|
||||
taskId = CreateTask(sub_806E6CC, 0);
|
||||
gTasks[taskId].data[0] = songId;
|
||||
taskId = CreateTask(Task_PlayMapChosenOrBattleBGM, 0);
|
||||
gTasks[taskId].tSongId = songId;
|
||||
}
|
||||
|
||||
static void sub_806E6CC(u8 taskId)
|
||||
static void Task_PlayMapChosenOrBattleBGM(u8 taskId)
|
||||
{
|
||||
if (gTasks[taskId].data[0])
|
||||
PlayNewMapMusic(gTasks[taskId].data[0]);
|
||||
if (gTasks[taskId].tSongId)
|
||||
PlayNewMapMusic(gTasks[taskId].tSongId);
|
||||
else
|
||||
PlayNewMapMusic(GetBattleBGM());
|
||||
DestroyTask(taskId);
|
||||
}
|
||||
|
||||
#undef tSongId
|
||||
|
||||
const u32 *GetMonFrontSpritePal(struct Pokemon *mon)
|
||||
{
|
||||
u16 species = GetMonData(mon, MON_DATA_SPECIES2, 0);
|
||||
|
||||
Reference in New Issue
Block a user