aboutsummaryrefslogtreecommitdiffstats
path: root/engine/game_corner_slots2.asm
diff options
context:
space:
mode:
authordannye <corrnondacqb@yahoo.com>2015-07-04 00:44:12 -0500
committerdannye <corrnondacqb@yahoo.com>2015-07-04 00:47:29 -0500
commitf702fc7840e30f00c840ce619a1ea15d763438de (patch)
treee28c8b27278228f95139f7a73daf214ac680014e /engine/game_corner_slots2.asm
parentMore TX_ASM (diff)
downloadpokeyellow-f702fc7840e30f00c840ce619a1ea15d763438de.tar.gz
pokeyellow-f702fc7840e30f00c840ce619a1ea15d763438de.tar.xz
pokeyellow-f702fc7840e30f00c840ce619a1ea15d763438de.zip
Start using text predef macros
also sprite direction constants
Diffstat (limited to 'engine/game_corner_slots2.asm')
-rwxr-xr-xengine/game_corner_slots2.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/game_corner_slots2.asm b/engine/game_corner_slots2.asm
index 66e51237..850b1f99 100755
--- a/engine/game_corner_slots2.asm
+++ b/engine/game_corner_slots2.asm
@@ -6,13 +6,13 @@ AbleToPlaySlotsCheck ; 2ff09 (b:7f09)
predef IsItemInBag_ ; IsItemInBag_
ld a, b
and a
- ld b, $33 ; GameCornerCoinCaseText
+ ld b, (GameCornerCoinCaseText_id - TextPredefs) / 2 + 1
jr z, .printCoinCaseRequired
ld hl, wPlayerCoins
ld a, [hli]
or [hl]
jr nz, .done ; able to play
- ld b, $32 ; GameCornerNoCoinsText
+ ld b, (GameCornerNoCoinsText_id - TextPredefs) / 2 + 1
.printCoinCaseRequired
call EnableAutoTextBoxDrawing
ld a, b