Finish decompiling scrcmd

This commit is contained in:
scnorton
2019-01-06 16:17:40 -05:00
parent abac6f3ec8
commit 1581631e62
4 changed files with 42 additions and 118 deletions
+40
View File
@@ -2228,3 +2228,43 @@ SCRCMD_DEF(takecoins)
gSpecialVar_Result = 1;
return FALSE;
}
SCRCMD_DEF(cmdCA)
{
sub_8069A20();
return FALSE;
}
SCRCMD_DEF(cmdCB)
{
sub_8069A2C();
return FALSE;
}
// This command will force the Pokémon to be obedient, you don't get to make it disobedient.
SCRCMD_DEF(setmonobedient)
{
bool8 obedient = TRUE;
u16 partyIndex = VarGet(ScriptReadHalfword(ctx));
SetMonData(&gPlayerParty[partyIndex], MON_DATA_OBEDIENCE, &obedient);
return FALSE;
}
SCRCMD_DEF(checkmonobedience)
{
u16 partyIndex = VarGet(ScriptReadHalfword(ctx));
gSpecialVar_Result = GetMonData(&gPlayerParty[partyIndex], MON_DATA_OBEDIENCE, NULL);
return FALSE;
}
SCRCMD_DEF(setmonmetlocation)
{
u16 partyIndex = VarGet(ScriptReadHalfword(ctx));
u8 location = ScriptReadByte(ctx);
if (partyIndex < PARTY_SIZE)
SetMonData(&gPlayerParty[partyIndex], MON_DATA_MET_LOCATION, &location);
return FALSE;
}