Cleanup and documentation of teachy_tv
This commit is contained in:
+1
-1
@@ -2746,7 +2746,7 @@ void sub_81134CC(struct Var4038Struct * a0)
|
||||
if (VarGet(VAR_MAP_SCENE_SAFFRON_CITY_POKEMON_TRAINER_FAN_CLUB) == 2)
|
||||
{
|
||||
sub_8113078(a0);
|
||||
if (gUnknown_2023E8A == 1)
|
||||
if (gBattleOutcome == B_OUTCOME_WON)
|
||||
sub_8113194(a0);
|
||||
else
|
||||
sub_81131FC(a0);
|
||||
|
||||
@@ -26,7 +26,7 @@ void sub_812C334(s32 *, s32 *);
|
||||
|
||||
void sub_812BFDC(void)
|
||||
{
|
||||
if (!(gBattleTypeFlags & (BATTLE_TYPE_LINK | BATTLE_TYPE_WALLY_TUTORIAL | BATTLE_TYPE_DOME)) && (gUnknown_2023E8A == 1 || gUnknown_2023E8A == 7))
|
||||
if (!(gBattleTypeFlags & (BATTLE_TYPE_LINK | BATTLE_TYPE_WALLY_TUTORIAL | BATTLE_TYPE_DOME)) && (gBattleOutcome == B_OUTCOME_WON || gBattleOutcome == B_OUTCOME_CAUGHT))
|
||||
{
|
||||
struct QuestLogStruct_TrainerBattleRecord * questLogTrainerBattleRecord = Alloc(sizeof(struct QuestLogStruct_TrainerBattleRecord));
|
||||
struct QuestLogStruct_WildBattleRecord * questLogWildBattleRecord = Alloc(sizeof(struct QuestLogStruct_WildBattleRecord));
|
||||
@@ -81,7 +81,7 @@ void sub_812BFDC(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (gUnknown_2023E8A == 1)
|
||||
if (gBattleOutcome == B_OUTCOME_WON)
|
||||
{
|
||||
questLogWildBattleRecord->v0 = GetMonData(gEnemyParty + 0, MON_DATA_SPECIES);
|
||||
questLogWildBattleRecord->v2 = SPECIES_NONE;
|
||||
@@ -116,7 +116,7 @@ void sub_812C224(void)
|
||||
if (gBattleTypeFlags & BATTLE_TYPE_LINK)
|
||||
{
|
||||
struct QuestLogStruct_LinkBattleRecord * r5 = Alloc(sizeof(struct QuestLogStruct_LinkBattleRecord));
|
||||
r5->v0 = gUnknown_2023E8A - 1;
|
||||
r5->v0 = gBattleOutcome - 1; // 0 = won, 1 = lost, 2 = drew
|
||||
if (gBattleTypeFlags & BATTLE_TYPE_MULTI)
|
||||
{
|
||||
r8 = 15;
|
||||
|
||||
+429
-414
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -1171,7 +1171,7 @@ static void Task_TMCaseDude_Playback(u8 taskId)
|
||||
if (data[8] < 21)
|
||||
{
|
||||
data[8] = 21;
|
||||
sub_815AC20();
|
||||
SetTeachyTvControllerModeToResume();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user