aboutsummaryrefslogtreecommitdiffstats
path: root/engine/events
diff options
context:
space:
mode:
authorNarishma-gb <194818981+Narishma-gb@users.noreply.github.com>2025-04-09 05:17:32 +0200
committerGitHub <noreply@github.com>2025-04-08 22:17:32 -0500
commit0ecc36c83a6bf3ecfee45e9f62afc3ebfb97b024 (patch)
tree6c1e5dce8609e33aed4311d8cc1f4b4ebcc73357 /engine/events
parentFurther improve NPC trade labels and comments (#493) (diff)
downloadpokeyellow-0ecc36c83a6bf3ecfee45e9f62afc3ebfb97b024.tar.gz
pokeyellow-0ecc36c83a6bf3ecfee45e9f62afc3ebfb97b024.tar.xz
pokeyellow-0ecc36c83a6bf3ecfee45e9f62afc3ebfb97b024.zip
Use constants in `PrintBCDNumber` calls (#503)
Diffstat (limited to 'engine/events')
-rw-r--r--engine/events/prize_menu.asm11
1 files changed, 4 insertions, 7 deletions
diff --git a/engine/events/prize_menu.asm b/engine/events/prize_menu.asm
index f2b24a3f..0e78653b 100644
--- a/engine/events/prize_menu.asm
+++ b/engine/events/prize_menu.asm
@@ -126,18 +126,15 @@ GetPrizeMenuId:
; put prices on the right side of the textbox
ld de, wPrize1Price
hlcoord 13, 5
-; reg. c:
-; [low nybble] number of bytes
-; [bits 765 = %100] space-padding (not zero-padding)
- ld c, (1 << 7) | 2
+ ld c, 2 | LEADING_ZEROES
call PrintBCDNumber
ld de, wPrize2Price
hlcoord 13, 7
- ld c, (1 << 7) | 2
+ ld c, 2 | LEADING_ZEROES
call PrintBCDNumber
ld de, wPrize3Price
hlcoord 13, 9
- ld c, (1 << 7) | 2
+ ld c, 2 | LEADING_ZEROES
jp PrintBCDNumber
INCLUDE "data/events/prizes.asm"
@@ -156,7 +153,7 @@ PrintPrizePrice:
call PlaceString
hlcoord 13, 1
ld de, wPlayerCoins
- ld c, %10000010
+ ld c, 2 | LEADING_ZEROES
call PrintBCDNumber
ret