summaryrefslogtreecommitdiff
path: root/engine/game_corner_slots2.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/game_corner_slots2.asm')
-rwxr-xr-xengine/game_corner_slots2.asm32
1 files changed, 32 insertions, 0 deletions
diff --git a/engine/game_corner_slots2.asm b/engine/game_corner_slots2.asm
new file mode 100755
index 00000000..719c50e7
--- /dev/null
+++ b/engine/game_corner_slots2.asm
@@ -0,0 +1,32 @@
+AbleToPlaySlotsCheck ; 2ff09 (b:7f09)
+ ld a, [$c102]
+ and $8
+ jr z, .done ; not able
+ ld b, COIN_CASE
+ ld a, $1c
+ call Predef ; IsItemInBag_
+ ld a, b
+ and a
+ ld b, $33 ; GameCornerCoinCaseText
+ jr z, .printCoinCaseRequired
+ ld hl, wPlayerCoins
+ ld a, [hli]
+ or [hl]
+ jr nz, .done ; able to play
+ ld b, $32 ; GameCornerNoCoinsText
+.printCoinCaseRequired
+ call EnableAutoTextBoxDrawing
+ ld a, b
+ call PrintPredefTextID
+ xor a
+.done
+ ld [$cd3d], a
+ ret
+
+GameCornerCoinCaseText: ; 2ff32 (b:7f32)
+ TX_FAR _GameCornerCoinCaseText
+ db "@"
+
+GameCornerNoCoinsText: ; 2ff37 (b:7f37)
+ TX_FAR _GameCornerNoCoinsText
+ db "@"