From 24c0db33ef1a9ae1da94eac8e1089184f1358d1d Mon Sep 17 00:00:00 2001 From: Linus Unnebäck Date: Sat, 10 May 2025 19:40:58 +0200 Subject: Improve IsSurfingPikachuInParty documentation (#128) --- home/map_objects.asm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'home/map_objects.asm') diff --git a/home/map_objects.asm b/home/map_objects.asm index 59140505..737ad0c0 100644 --- a/home/map_objects.asm +++ b/home/map_objects.asm @@ -71,8 +71,9 @@ IsItemInBag:: ret IsSurfingPikachuInParty:: -; set bit 6 of wd471 if true -; also calls Func_3467, which is a bankswitch to IsStarterPikachuInOurParty +; set bit 6 of wd471 if any Pikachu with Surf is in party +; set bit 7 of wd471 if starter Pikachu is in party (with or without Surf) +; also performs a bankswitch to IsStarterPikachuInOurParty ld a, [wd471] and $3f ld [wd471], a @@ -109,10 +110,10 @@ IsSurfingPikachuInParty:: add hl, de dec c jr nz, .loop - call Func_3467 + call .checkForStarter ret -Func_3467:: +.checkForStarter push hl push bc callfar IsStarterPikachuInOurParty -- cgit v1.3.1-sl0p