diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2018-10-08 21:49:28 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2018-10-08 21:49:28 -0400 |
commit | 88c181a6b08d0b792e1a0c55f1ac010f80373d11 (patch) | |
tree | f209dbf747192f5f2a9c9a51098e208e689eacbb /src | |
parent | fe2d1d4e3cda75e9a29d567818bd4e42d310a594 (diff) |
through sub_810D0FC
Diffstat (limited to 'src')
-rw-r--r-- | src/vs_seeker.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/vs_seeker.c b/src/vs_seeker.c index df5ea3eec..6942ed9bd 100644 --- a/src/vs_seeker.c +++ b/src/vs_seeker.c @@ -18,6 +18,7 @@ #include "battle_setup.h" #include "random.h" #include "field_map_obj.h" +#include "field_player_avatar.h" #include "vs_seeker.h" // static types @@ -973,3 +974,29 @@ bool32 sub_810D0A8(u32 a0) return FALSE; return TRUE; } + +void sub_810D0D0(void) +{ + u8 i; + + for (i = 0; i < 100; i++) + gSaveBlock1Ptr->trainerRematches[i] = 0; +} + +bool8 sub_810D0FC(struct VsSeekerSubstruct * a0) +{ + s16 x; + s16 y; + + PlayerGetDestCoords(&x, &y); + x -= 7; + y -= 7; + + if ( x - 7 <= a0->unk_8 + && x + 7 >= a0->unk_8 + && y - 5 <= a0->unk_a + && y + 5 >= a0->unk_a + && sub_810CF04(a0->unk_7) == 1) + return TRUE; + return FALSE; +} |