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
|
FieldDebug_PokemonFollowing:
call .DoPokemonFollowing
jr c, .exit
ld a, FIELDDEBUG_RETURN_REOPEN
ret
.exit
ld a, FIELDDEBUG_RETURN_CLEANUP
ret
.DoPokemonFollowing:
ld hl, .MenuHeader
call LoadMenuHeader
call VerticalMenu
jr c, .done
ld a, [wMenuCursorY]
cp 1
jr nz, .remove
ld a, [wPlayerStructEnd]
and a
jr nz, .ShowUnableText
callab Function8031
ld de, SFX_24
call PlaySFX
call CloseWindow
call UpdateSprites
scf
ret
.remove
callab Function806c
ld de, SFX_25
call PlaySFX
jr .done
.ShowUnableText:
ld hl, .UnableText
call FieldDebug_ShowTextboxAndExit
.done
call CloseWindow
call UpdateSprites
xor a
ret
.MenuHeader:
db MENU_BACKUP_TILES
menu_coords 3, 3, 9, 9
dw .MenuData
db 1
.MenuData:
db STATICMENU_CURSOR
db 2
db "つける@"
db "はずす@"
.UnableText:
text "だめです!!"
done
|