Set FLAG_SYS_POKEMON_GET when debug gifting yourself a Pokémon
This commit is contained in:
parent
e3e0d60222
commit
07a8af5975
1 changed files with 5 additions and 0 deletions
|
@ -2178,6 +2178,8 @@ static void DebugAction_Give_Pokemon_SelectLevel(u8 taskId)
|
||||||
{
|
{
|
||||||
PlaySE(MUS_LEVEL_UP);
|
PlaySE(MUS_LEVEL_UP);
|
||||||
ScriptGiveMon(sDebugMonData->mon_speciesId, gTasks[taskId].data[3], ITEM_NONE, 0,0,0);
|
ScriptGiveMon(sDebugMonData->mon_speciesId, gTasks[taskId].data[3], ITEM_NONE, 0,0,0);
|
||||||
|
//Set flag for user convenience
|
||||||
|
FlagSet(FLAG_SYS_POKEMON_GET);
|
||||||
Free(sDebugMonData); //Frees EWRAM of MonData Struct
|
Free(sDebugMonData); //Frees EWRAM of MonData Struct
|
||||||
DebugAction_DestroyExtraWindow(taskId);
|
DebugAction_DestroyExtraWindow(taskId);
|
||||||
}
|
}
|
||||||
|
@ -2732,6 +2734,9 @@ static void DebugAction_Give_Pokemon_ComplexCreateMon(u8 taskId) //https://githu
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Set flag for user convenience
|
||||||
|
FlagSet(FLAG_SYS_POKEMON_GET);
|
||||||
|
|
||||||
Free(sDebugMonData); //Frees EWRAM of MonData Struct
|
Free(sDebugMonData); //Frees EWRAM of MonData Struct
|
||||||
DebugAction_DestroyExtraWindow(taskId); //return sentToPc;
|
DebugAction_DestroyExtraWindow(taskId); //return sentToPc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue