aboutsummaryrefslogtreecommitdiffstats
path: root/engine/pikachu
diff options
context:
space:
mode:
authorDaniel Harding <33dannye@gmail.com>2020-11-07 21:28:20 -0600
committerGitHub <noreply@github.com>2020-11-07 21:28:20 -0600
commitedf375aff14e54bd54e7a25780fe8b714691ccc7 (patch)
tree015c63e79e4a245c28f72b18954f2a845d30271c /engine/pikachu
parentIgnore tools/pcm (diff)
parentFix typo (diff)
downloadpokeyellow-edf375aff14e54bd54e7a25780fe8b714691ccc7.tar.gz
pokeyellow-edf375aff14e54bd54e7a25780fe8b714691ccc7.tar.xz
pokeyellow-edf375aff14e54bd54e7a25780fe8b714691ccc7.zip
Merge pull request #63 from dannye/debug
Debug Yellow
Diffstat (limited to 'engine/pikachu')
-rwxr-xr-xengine/pikachu/pikachu_emotions.asm55
-rwxr-xr-xengine/pikachu/pikachu_pic_animation.asm3
2 files changed, 55 insertions, 3 deletions
diff --git a/engine/pikachu/pikachu_emotions.asm b/engine/pikachu/pikachu_emotions.asm
index 1378d383..61db6e80 100755
--- a/engine/pikachu/pikachu_emotions.asm
+++ b/engine/pikachu/pikachu_emotions.asm
@@ -164,7 +164,34 @@ StarterPikachuEmotionCommand_subcmd:
dw PikachuBillsHouseCheck
StarterPikachuEmotionCommand_nop2:
+IF DEF(_DEBUG)
+ push hl
+ ld hl, wd732
+ bit 1, [hl]
+ pop hl
+ ret z
+ push de
+ ld d, a
+ ld a, [wCurMap]
+ cp REDS_HOUSE_2F
+ ld a, d
+ pop de
+ ret nz
+ push de
+ call Pikachu_LoadCurrentMapViewUpdateSpritesAndDelay3
+ call LoadFontTilePatterns
+ ld hl, ExpressionText
+ call PrintText
+ call Pikachu_LoadCurrentMapViewUpdateSpritesAndDelay3
+ pop de
+ ret
+
+ExpressionText:
+ text_far _ExpressionText
+ text_end
+ELSE
ret
+ENDC
StarterPikachuEmotionCommand_9:
push de
@@ -184,7 +211,35 @@ DeletedFunction_fcffb:
REPT 5
nop
ENDR
+IF DEF(_DEBUG)
+ push hl
+ ld hl, wd732
+ bit 1, [hl]
+ pop hl
+ ret z
+ push de
+ ld d, a
+ ld a, [wCurMap]
+ cp REDS_HOUSE_2F
+ ld a, d
+ pop de
+ ret nz
+ ld a, [wExpressionNumber]
+ inc a
+ cp (PikachuEmotion33_id - PikachuEmotionTable) / 2
+ jr c, .valid
+ ldpikaemotion a, PikachuEmotion1
+.valid
+ ld [wExpressionNumber], a
+ ret
+
+HallOfFamePCForever:
+ callfar HallOfFamePC
+ call WaitForTextScrollButtonPress
+ jr HallOfFamePCForever
+ELSE
ret
+ENDC
PlaySpecificPikachuEmotion:
ld a, e
diff --git a/engine/pikachu/pikachu_pic_animation.asm b/engine/pikachu/pikachu_pic_animation.asm
index 755395ba..4f56d542 100755
--- a/engine/pikachu/pikachu_pic_animation.asm
+++ b/engine/pikachu/pikachu_pic_animation.asm
@@ -850,6 +850,3 @@ PikaPicAnimCommand_thunderbolt:
ret
INCLUDE "data/pikachu/pikachu_pic_animation.asm"
-
-Func_fe66e:
- ret