Continue updating event macro comments
This commit is contained in:
@@ -1458,7 +1458,9 @@ bool8 ScrCmd_showmonpic(struct ScriptContext *ctx)
|
||||
|
||||
bool8 ScrCmd_hidemonpic(struct ScriptContext *ctx)
|
||||
{
|
||||
bool8 (*func)(void) = ScriptMenu_GetPicboxWaitFunc();
|
||||
// The hide function returns a pointer to a function
|
||||
// that returns true once the pic is hidden
|
||||
bool8 (*func)(void) = ScriptMenu_HidePokemonPic();
|
||||
|
||||
if (func == NULL)
|
||||
return FALSE;
|
||||
|
||||
@@ -563,6 +563,7 @@ static void Task_PokemonPicWindow(u8 taskId)
|
||||
task->tState++;
|
||||
break;
|
||||
case 1:
|
||||
// Wait until state is advanced by ScriptMenu_HidePokemonPic
|
||||
break;
|
||||
case 2:
|
||||
FreeResourcesAndDestroySprite(&gSprites[task->tMonSpriteId], task->tMonSpriteId);
|
||||
@@ -600,7 +601,7 @@ bool8 ScriptMenu_ShowPokemonPic(u16 species, u8 x, u8 y)
|
||||
}
|
||||
}
|
||||
|
||||
bool8 (*ScriptMenu_GetPicboxWaitFunc(void))(void)
|
||||
bool8 (*ScriptMenu_HidePokemonPic(void))(void)
|
||||
{
|
||||
u8 taskId = FindTaskIdByFunc(Task_PokemonPicWindow);
|
||||
|
||||
|
||||
@@ -150,7 +150,12 @@ void CreateScriptedWildMon(u16 species, u8 level, u16 item)
|
||||
|
||||
void ScriptSetMonMoveSlot(u8 monIndex, u16 move, u8 slot)
|
||||
{
|
||||
// Allows monIndex to go out of bounds of gPlayerParty. Doesn't occur in vanilla
|
||||
#ifdef BUGFIX
|
||||
if (monIndex >= PARTY_SIZE)
|
||||
#else
|
||||
if (monIndex > PARTY_SIZE)
|
||||
#endif
|
||||
monIndex = gPlayerPartyCount - 1;
|
||||
|
||||
SetMonMoveSlot(&gPlayerParty[monIndex], move, slot);
|
||||
|
||||
Reference in New Issue
Block a user