mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-21 22:52:15 +13:00
Add subdirectories to engine/ similar to pokecrystal
This commit is contained in:
parent
5559d51c86
commit
f275790aec
124 changed files with 342 additions and 346 deletions
31
engine/slots/game_corner_slots2.asm
Executable file
31
engine/slots/game_corner_slots2.asm
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
AbleToPlaySlotsCheck:
|
||||
ld a, [wSpriteStateData1 + 2]
|
||||
and $8
|
||||
jr z, .done ; not able
|
||||
ld b, COIN_CASE
|
||||
predef GetQuantityOfItemInBag
|
||||
ld a, b
|
||||
and a
|
||||
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, (GameCornerNoCoinsText_id - TextPredefs) / 2 + 1
|
||||
.printCoinCaseRequired
|
||||
call EnableAutoTextBoxDrawing
|
||||
ld a, b
|
||||
call PrintPredefTextID
|
||||
xor a
|
||||
.done
|
||||
ld [wCanPlaySlots], a
|
||||
ret
|
||||
|
||||
GameCornerCoinCaseText::
|
||||
TX_FAR _GameCornerCoinCaseText
|
||||
db "@"
|
||||
|
||||
GameCornerNoCoinsText::
|
||||
TX_FAR _GameCornerNoCoinsText
|
||||
db "@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue