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
54
engine/slots/game_corner_slots.asm
Executable file
54
engine/slots/game_corner_slots.asm
Executable file
|
|
@ -0,0 +1,54 @@
|
|||
StartSlotMachine:
|
||||
ld a, [wHiddenObjectFunctionArgument]
|
||||
cp $fd
|
||||
jr z, .printOutOfOrder
|
||||
cp $fe
|
||||
jr z, .printOutToLunch
|
||||
cp $ff
|
||||
jr z, .printSomeonesKeys
|
||||
callba AbleToPlaySlotsCheck
|
||||
ld a, [wCanPlaySlots]
|
||||
and a
|
||||
ret z
|
||||
ld a, [wLuckySlotHiddenObjectIndex]
|
||||
ld b, a
|
||||
ld a, [wHiddenObjectIndex]
|
||||
inc a
|
||||
cp b
|
||||
jr z, .match
|
||||
ld a, 253
|
||||
jr .next
|
||||
.match
|
||||
ld a, 250
|
||||
.next
|
||||
ld [wSlotMachineSevenAndBarModeChance], a
|
||||
ld a, [H_LOADEDROMBANK]
|
||||
ld [wSlotMachineSavedROMBank], a
|
||||
call PromptUserToPlaySlots
|
||||
ret
|
||||
.printOutOfOrder
|
||||
tx_pre_id GameCornerOutOfOrderText
|
||||
jr .printText
|
||||
.printOutToLunch
|
||||
tx_pre_id GameCornerOutToLunchText
|
||||
jr .printText
|
||||
.printSomeonesKeys
|
||||
tx_pre_id GameCornerSomeonesKeysText
|
||||
.printText
|
||||
push af
|
||||
call EnableAutoTextBoxDrawing
|
||||
pop af
|
||||
call PrintPredefTextID
|
||||
ret
|
||||
|
||||
GameCornerOutOfOrderText::
|
||||
TX_FAR _GameCornerOutOfOrderText
|
||||
db "@"
|
||||
|
||||
GameCornerOutToLunchText::
|
||||
TX_FAR _GameCornerOutToLunchText
|
||||
db "@"
|
||||
|
||||
GameCornerSomeonesKeysText::
|
||||
TX_FAR _GameCornerSomeonesKeysText
|
||||
db "@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue