2014-05-22 22:13:20 +00:00
|
|
|
AbleToPlaySlotsCheck ; 2ff09 (b:7f09)
|
2014-05-26 21:04:56 +00:00
|
|
|
ld a, [wSpriteStateData1 + 2]
|
2014-05-22 22:13:20 +00:00
|
|
|
and $8
|
|
|
|
jr z, .done ; not able
|
|
|
|
ld b, COIN_CASE
|
2014-06-16 20:57:26 +00:00
|
|
|
predef IsItemInBag_ ; IsItemInBag_
|
2014-05-22 22:13:20 +00:00
|
|
|
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
|
2014-05-26 21:04:56 +00:00
|
|
|
ld [wWhichTrade], a
|
2014-05-22 22:13:20 +00:00
|
|
|
ret
|
|
|
|
|
|
|
|
GameCornerCoinCaseText: ; 2ff32 (b:7f32)
|
|
|
|
TX_FAR _GameCornerCoinCaseText
|
|
|
|
db "@"
|
|
|
|
|
|
|
|
GameCornerNoCoinsText: ; 2ff37 (b:7f37)
|
|
|
|
TX_FAR _GameCornerNoCoinsText
|
|
|
|
db "@"
|