Document contest AI scripts

This commit is contained in:
GriffinR
2020-08-21 14:47:55 -04:00
parent 469ec5f248
commit fbb70b3727
8 changed files with 824 additions and 689 deletions

View File

@@ -2789,7 +2789,7 @@ void CreateContestMonFromParty(u8 partyIndex)
gContestMons[gContestPlayerMonIndex].trainerGfxId = OBJ_EVENT_GFX_LINK_BRENDAN;
else
gContestMons[gContestPlayerMonIndex].trainerGfxId = OBJ_EVENT_GFX_LINK_MAY;
gContestMons[gContestPlayerMonIndex].aiChecks = 0;
gContestMons[gContestPlayerMonIndex].aiFlags = 0;
gContestMons[gContestPlayerMonIndex].highestRank = 0;
gContestMons[gContestPlayerMonIndex].species = GetMonData(&gPlayerParty[partyIndex], MON_DATA_SPECIES);
GetMonData(&gPlayerParty[partyIndex], MON_DATA_NICKNAME, name);
@@ -5620,7 +5620,7 @@ void ClearContestWinnerPicsInContestHall(void)
s32 i;
for (i = 0; i < 8; i++)
gSaveBlock1Ptr->contestWinners[i] = gUnknown_08587FA4[i];
gSaveBlock1Ptr->contestWinners[i] = gDefaultContestWinners[i];
}
static void SetContestLiveUpdateFlags(u8 contestant)