Document cable_club.inc
This commit is contained in:
+15
-15
@@ -158,7 +158,7 @@ static void sub_802AA60(struct PokemonJump1 *);
|
||||
static void sub_802AA94(struct PokemonJump1 *);
|
||||
static void sub_802AB20(void);
|
||||
static void sub_802AB98(void);
|
||||
static s16 sub_802AC00(u16 species);
|
||||
static s16 GetPokemonJumpSpeciesIdx(u16 species);
|
||||
static void sub_802AC2C(struct PokemonJump1_MonInfo *monInfo, struct Pokemon *mon);
|
||||
static void sub_802AC6C(void);
|
||||
static void sub_802ACA0(u8 taskId);
|
||||
@@ -288,7 +288,7 @@ static void sub_802D598(void);
|
||||
static void sub_802D5E4(void);
|
||||
static void sub_802D72C(void);
|
||||
static void sub_802D688(void);
|
||||
static void sub_802E3E4(u8 taskId);
|
||||
static void Task_ShowPokemonJumpRecords(u8 taskId);
|
||||
static void sub_802E6D0(u8 taskId);
|
||||
static void sub_802EB98(u8 taskId);
|
||||
static void sub_802E500(u16 windowId, int width);
|
||||
@@ -501,7 +501,7 @@ static void sub_802AB20(void)
|
||||
|
||||
for (i = 0; i < MAX_RFU_PLAYERS; i++)
|
||||
{
|
||||
index = sub_802AC00(gUnknown_02022CFC->unk82A8[i].species);
|
||||
index = GetPokemonJumpSpeciesIdx(gUnknown_02022CFC->unk82A8[i].species);
|
||||
gUnknown_02022CFC->unk82E4[i].unkC = gPkmnJumpSpecies[index].unk2;
|
||||
}
|
||||
|
||||
@@ -524,7 +524,7 @@ static void sub_802AB98(void)
|
||||
}
|
||||
}
|
||||
|
||||
static s16 sub_802AC00(u16 species)
|
||||
static s16 GetPokemonJumpSpeciesIdx(u16 species)
|
||||
{
|
||||
u32 i;
|
||||
for (i = 0; i < ARRAY_COUNT(gPkmnJumpSpecies); i++)
|
||||
@@ -533,7 +533,7 @@ static s16 sub_802AC00(u16 species)
|
||||
return i;
|
||||
}
|
||||
|
||||
return -1;
|
||||
return -1; // species isnt allowed
|
||||
}
|
||||
|
||||
static void sub_802AC2C(struct PokemonJump1_MonInfo *monInfo, struct Pokemon *mon)
|
||||
@@ -2204,12 +2204,12 @@ static u8 *sub_802C8E8(u8 multiplayerId)
|
||||
return gUnknown_02022CFC->unk82E4[multiplayerId].unk1C;
|
||||
}
|
||||
|
||||
bool32 sub_802C908(u16 species)
|
||||
bool32 IsSpeciesAllowedInPokemonJump(u16 species)
|
||||
{
|
||||
return sub_802AC00(species) > -1;
|
||||
return GetPokemonJumpSpeciesIdx(species) > -1;
|
||||
}
|
||||
|
||||
void sub_802C920(void)
|
||||
void DoesPartyHavePokemonJumpSpecies(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -2218,15 +2218,15 @@ void sub_802C920(void)
|
||||
if (GetMonData(&gPlayerParty[i], MON_DATA_SANITY_HAS_SPECIES))
|
||||
{
|
||||
u16 species = GetMonData(&gPlayerParty[i], MON_DATA_SPECIES2);
|
||||
if (sub_802C908(species))
|
||||
if (IsSpeciesAllowedInPokemonJump(species))
|
||||
{
|
||||
gSpecialVar_Result = 1;
|
||||
gSpecialVar_Result = TRUE;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
gSpecialVar_Result = 0;
|
||||
gSpecialVar_Result = FALSE;
|
||||
}
|
||||
|
||||
// Large group of data.
|
||||
@@ -3922,10 +3922,10 @@ static void sub_802E3A8(void)
|
||||
pokeJump->field6++;
|
||||
}
|
||||
|
||||
void sub_802E3C4(void)
|
||||
void ShowPokemonJumpRecords(void)
|
||||
{
|
||||
u8 taskId = CreateTask(sub_802E3E4, 0);
|
||||
sub_802E3E4(taskId);
|
||||
u8 taskId = CreateTask(Task_ShowPokemonJumpRecords, 0);
|
||||
Task_ShowPokemonJumpRecords(taskId);
|
||||
}
|
||||
|
||||
static const struct WindowTemplate gUnknown_082FE270 =
|
||||
@@ -3941,7 +3941,7 @@ static const struct WindowTemplate gUnknown_082FE270 =
|
||||
|
||||
static const u8 *const gUnknown_082FE278[] = {gText_JumpsInARow, gText_BestScore2, gText_ExcellentsInARow};
|
||||
|
||||
static void sub_802E3E4(u8 taskId)
|
||||
static void Task_ShowPokemonJumpRecords(u8 taskId)
|
||||
{
|
||||
struct WindowTemplate window;
|
||||
int i, width, widthCurr;
|
||||
|
||||
Reference in New Issue
Block a user