aboutsummaryrefslogtreecommitdiffstats
path: root/home/npc_movement.asm
diff options
context:
space:
mode:
authorSatoMew <SatoMew@users.noreply.github.com>2023-07-15 23:36:59 +0100
committerGitHub <noreply@github.com>2023-07-15 18:36:59 -0400
commitf46db37d508f0111ad44ad062ed3d83ba3282d1d (patch)
tree170af31852384f5a207918decf05e45a837d95d1 /home/npc_movement.asm
parentAdd macros, constants, and labels for map scripts and text (#367) (diff)
downloadpokeyellow-f46db37d508f0111ad44ad062ed3d83ba3282d1d.tar.gz
pokeyellow-f46db37d508f0111ad44ad062ed3d83ba3282d1d.tar.xz
pokeyellow-f46db37d508f0111ad44ad062ed3d83ba3282d1d.zip
Thoroughly document debug code (#410)
Diffstat (limited to 'home/npc_movement.asm')
-rw-r--r--home/npc_movement.asm6
1 files changed, 4 insertions, 2 deletions
diff --git a/home/npc_movement.asm b/home/npc_movement.asm
index a3367f9a..23a85427 100644
--- a/home/npc_movement.asm
+++ b/home/npc_movement.asm
@@ -50,10 +50,12 @@ RunNPCMovementScript::
EndNPCMovementScript::
farjp _EndNPCMovementScript
-DebugPressedOrHeldB::
+DebugPressedOrHeldB:: ; dummy except in _DEBUG
+; This is used to skip Trainer battles, the
+; Safari Game step counter, and some NPC scripts.
IF DEF(_DEBUG)
ld a, [wd732]
- bit 1, a
+ bit BIT_DEBUG_MODE, a
ret z
ldh a, [hJoyHeld]
bit BIT_B_BUTTON, a