1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
DebugLookAtSprite:
farcall Func_80cd7
scf
ret
DebugVEffect:
farcall Func_80cd6
scf
ret
DebugCreateBoosterPack:
.go_back
ld a, [wDebugBoosterSelection]
ld hl, Unknown_12919
call InitAndPrintMenu
.input_loop_1
call DoFrameIfLCDEnabled
call HandleMenuInput
jr nc, .input_loop_1
ldh a, [hCurMenuItem]
cp e
jr nz, .cancel
ld [wDebugBoosterSelection], a
add a
ld c, a
ld b, $00
ld hl, Unknown_127f1
add hl, bc
ld a, [hli]
ld h, [hl]
ld l, a
xor a
call InitAndPrintMenu
.input_loop_2
call DoFrameIfLCDEnabled
call HandleMenuInput
jr nc, .input_loop_2
ldh a, [hCurMenuItem]
cp e
jr nz, .go_back
ld a, [wDebugBoosterSelection]
ld c, a
ld b, $00
ld hl, Unknown_127fb
add hl, bc
ld a, [hl]
add e
farcall GenerateBoosterPack
farcall OpenBoosterPack
.cancel
scf
ret
Unknown_127f1:
dw Unknown_1292a
dw Unknown_1292a
dw Unknown_1293b
dw Unknown_1294c
dw Unknown_1295d
Unknown_127fb:
db BOOSTER_COLOSSEUM_NEUTRAL
db BOOSTER_EVOLUTION_NEUTRAL
db BOOSTER_MYSTERY_NEUTRAL
db BOOSTER_LABORATORY_NEUTRAL
db BOOSTER_ENERGY_LIGHTNING_FIRE
DebugCredits:
farcall PlayCreditsSequence
scf
ret
DebugCGBTest:
farcall Func_1c865
scf
ret
DebugSGBFrame:
call DisableLCD
ld a, [wDebugSGBBorder]
farcall SetSGBBorder
ld a, [wDebugSGBBorder]
inc a
cp $04
jr c, .asm_1281f
xor a
.asm_1281f
ld [wDebugSGBBorder], a
scf
ret
DebugDuelMode:
call EnableSRAM
ld a, [sDebugDuelMode]
and $01
ld [sDebugDuelMode], a
ld hl, Unknown_12908
call InitAndPrintMenu
.input_loop
call DoFrameIfLCDEnabled
call HandleMenuInput
jr nc, .input_loop
ldh a, [hCurMenuItem]
cp e
jr nz, .input_loop
and $01
ld [sDebugDuelMode], a
call DisableSRAM
scf
ret
DebugStandardBGCharacter:
ld a, $80
ld de, $0
lb bc, 16, 16
lb hl, 1, 16
call FillRectangle
ld a, BUTTONS | D_PAD
call WaitUntilKeysArePressed
scf
ret
DebugQuit:
or a
ret
|