Clean up scrcmd PR (#5511)
Renamed CheckPartyHasSpecie to CheckPartyHasSpecies and cleaned up function calls
This commit is contained in:
parent
f810d7d0c0
commit
eedeaf1ead
3 changed files with 7 additions and 7 deletions
|
@ -35,6 +35,6 @@ void SetPCBoxToSendMon(u8 boxId);
|
|||
void PreparePartyForSkyBattle(void);
|
||||
void GetObjectPosition(u16*, u16*, u32, u32);
|
||||
bool32 CheckObjectAtXY(u32, u32);
|
||||
bool32 CheckPartyHasSpecie(u32);
|
||||
bool32 CheckPartyHasSpecies(u32);
|
||||
|
||||
#endif // GUARD_FIELD_SPECIALS_H
|
||||
|
|
|
@ -4316,7 +4316,7 @@ bool32 CheckObjectAtXY(u32 x, u32 y)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
bool32 CheckPartyHasSpecie(u32 givenSpecies)
|
||||
bool32 CheckPartyHasSpecies(u32 givenSpecies)
|
||||
{
|
||||
u32 partyIndex;
|
||||
|
||||
|
|
10
src/scrcmd.c
10
src/scrcmd.c
|
@ -2496,7 +2496,7 @@ bool8 ScrCmd_getobjectxy(struct ScriptContext *ctx)
|
|||
u32 useTemplate = VarGet(ScriptReadHalfword(ctx));
|
||||
u16 *pX = GetVarPointer(ScriptReadHalfword(ctx));
|
||||
u16 *pY = GetVarPointer(ScriptReadHalfword(ctx));
|
||||
GetObjectPosition(pX,pY,localId,useTemplate);
|
||||
GetObjectPosition(pX, pY, localId, useTemplate);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -2507,7 +2507,7 @@ bool8 ScrCmd_checkobjectat(struct ScriptContext *ctx)
|
|||
u32 y = VarGet(ScriptReadHalfword(ctx)) + 7;
|
||||
u16 *varPointer = GetVarPointer(ScriptReadHalfword(ctx));
|
||||
|
||||
*varPointer = CheckObjectAtXY(x,y);
|
||||
*varPointer = CheckObjectAtXY(x, y);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -2516,10 +2516,10 @@ bool8 Scrcmd_getsetpokedexflag(struct ScriptContext *ctx)
|
|||
{
|
||||
u32 speciesId = SpeciesToNationalPokedexNum(VarGet(ScriptReadHalfword(ctx)));
|
||||
bool32 desiredFlag = VarGet(ScriptReadHalfword(ctx));
|
||||
gSpecialVar_Result = GetSetPokedexFlag(speciesId,desiredFlag);
|
||||
gSpecialVar_Result = GetSetPokedexFlag(speciesId, desiredFlag);
|
||||
|
||||
if (desiredFlag == FLAG_SET_CAUGHT)
|
||||
GetSetPokedexFlag(speciesId,FLAG_SET_SEEN);
|
||||
GetSetPokedexFlag(speciesId, FLAG_SET_SEEN);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -2527,7 +2527,7 @@ bool8 Scrcmd_getsetpokedexflag(struct ScriptContext *ctx)
|
|||
bool8 Scrcmd_checkspecies(struct ScriptContext *ctx)
|
||||
{
|
||||
u32 givenSpecies = VarGet(ScriptReadHalfword(ctx));
|
||||
gSpecialVar_Result = CheckPartyHasSpecie(givenSpecies);
|
||||
gSpecialVar_Result = CheckPartyHasSpecies(givenSpecies);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue