aboutsummaryrefslogtreecommitdiffstats
path: root/home
diff options
context:
space:
mode:
authorLinus Unnebäck <linus@folkdatorn.se>2025-05-10 19:40:58 +0200
committerGitHub <noreply@github.com>2025-05-10 12:40:58 -0500
commit24c0db33ef1a9ae1da94eac8e1089184f1358d1d (patch)
tree0f7abca719e256a7a0200499cbd2406f1e3f623e /home
parentName Func_07c4/StopBikeSurf (#118) (diff)
downloadpokeyellow-24c0db33ef1a9ae1da94eac8e1089184f1358d1d.tar.gz
pokeyellow-24c0db33ef1a9ae1da94eac8e1089184f1358d1d.tar.xz
pokeyellow-24c0db33ef1a9ae1da94eac8e1089184f1358d1d.zip
Improve IsSurfingPikachuInParty documentation (#128)
Diffstat (limited to 'home')
-rw-r--r--home/map_objects.asm9
1 files changed, 5 insertions, 4 deletions
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