aboutsummaryrefslogtreecommitdiffstats
path: root/engine/game_corner_slots.asm
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2015-07-13 13:35:35 -0700
committerYamaArashi <shadow962@live.com>2015-07-13 13:35:35 -0700
commitf66a74b9fcb762d693e89415836386bcad2475b5 (patch)
treec7fc925c3be341491ebe75aa8bcda83d5e6dee3a /engine/game_corner_slots.asm
parentmenu wram variable names (diff)
downloadpokeyellow-f66a74b9fcb762d693e89415836386bcad2475b5.tar.gz
pokeyellow-f66a74b9fcb762d693e89415836386bcad2475b5.tar.xz
pokeyellow-f66a74b9fcb762d693e89415836386bcad2475b5.zip
comment slot machine
Diffstat (limited to 'engine/game_corner_slots.asm')
-rwxr-xr-xengine/game_corner_slots.asm24
1 files changed, 12 insertions, 12 deletions
diff --git a/engine/game_corner_slots.asm b/engine/game_corner_slots.asm
index 01d42d21..b3b2490c 100755
--- a/engine/game_corner_slots.asm
+++ b/engine/game_corner_slots.asm
@@ -1,5 +1,5 @@
StartSlotMachine: ; 37e2d (d:7e2d)
- ld a, [wTrainerSpriteOffset]
+ ld a, [wHiddenObjectFunctionArgument]
cp $fd
jr z, .printOutOfOrder
cp $fe
@@ -7,23 +7,23 @@ StartSlotMachine: ; 37e2d (d:7e2d)
cp $ff
jr z, .printSomeonesKeys
callba AbleToPlaySlotsCheck
- ld a, [wTrainerSpriteOffset]
+ ld a, [wHiddenObjectFunctionArgument]
and a
ret z
- ld a, [wUnknownSlotVar]
+ ld a, [wLuckySlotHiddenObjectIndex]
ld b, a
- ld a, [wTrainerFacingDirection]
+ ld a, [wHiddenObjectIndex]
inc a
cp b
- jr z, .asm_37e58
- ld a, $fd
- jr .asm_37e5a
-.asm_37e58
- ld a, $fa
-.asm_37e5a
- ld [wcc5b], a
+ jr z, .match
+ ld a, 253
+ jr .next
+.match
+ ld a, 250
+.next
+ ld [wSlotMachineSevenAndBarModeChance], a
ld a, [H_LOADEDROMBANK]
- ld [wcc5e], a
+ ld [wSlotMachineSavedROMBank], a
call PromptUserToPlaySlots
ret
.printOutOfOrder