diff options
author | scnorton <scnorton@biociphers.org> | 2019-01-06 16:17:40 -0500 |
---|---|---|
committer | scnorton <scnorton@biociphers.org> | 2019-01-06 16:17:40 -0500 |
commit | 1581631e6286e0ec8178630433e8c15cd7076ead (patch) | |
tree | 996dc1a413c8818d6efb746ecf15c3fae28b983e /src | |
parent | abac6f3ec853f451a7d456cfd336d8c51c0541c1 (diff) |
Finish decompiling scrcmd
Diffstat (limited to 'src')
-rw-r--r-- | src/scrcmd.c | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/scrcmd.c b/src/scrcmd.c index c6f6ab5d3..911ad2a42 100644 --- a/src/scrcmd.c +++ b/src/scrcmd.c @@ -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; +} |