mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
40902ffe24
This was discussed in #706 It also uncovered some off-by-one issues with defining some constants. A few structs now use rsreset/_RS to define their offset constants, as discussed in #739
49 lines
1.8 KiB
NASM
49 lines
1.8 KiB
NASM
; MonMenuOptionStrings indexes
|
|
const_def 1
|
|
const MONMENUVALUE_STATS ; 1
|
|
const MONMENUVALUE_SWITCH ; 2
|
|
const MONMENUVALUE_ITEM ; 3
|
|
const MONMENUVALUE_CANCEL ; 4
|
|
const MONMENUVALUE_MOVE ; 5
|
|
const MONMENUVALUE_MAIL ; 6
|
|
const MONMENUVALUE_ERROR ; 7
|
|
|
|
MonMenuOptionStrings:
|
|
; entries correspond to MONMENUVALUE_* constants
|
|
db "STATS@"
|
|
db "SWITCH@"
|
|
db "ITEM@"
|
|
db "CANCEL@"
|
|
db "MOVE@"
|
|
db "MAIL@"
|
|
db "ERROR!@"
|
|
|
|
MonMenuOptions:
|
|
; category, item, value; actions are in PokemonActionSubmenu (see engine/pokemon/mon_menu.asm)
|
|
table_width 3, MonMenuOptions
|
|
; moves
|
|
db MONMENU_FIELD_MOVE, MONMENUITEM_CUT, CUT
|
|
db MONMENU_FIELD_MOVE, MONMENUITEM_FLY, FLY
|
|
db MONMENU_FIELD_MOVE, MONMENUITEM_SURF, SURF
|
|
db MONMENU_FIELD_MOVE, MONMENUITEM_STRENGTH, STRENGTH
|
|
db MONMENU_FIELD_MOVE, MONMENUITEM_FLASH, FLASH
|
|
db MONMENU_FIELD_MOVE, MONMENUITEM_WATERFALL, WATERFALL
|
|
db MONMENU_FIELD_MOVE, MONMENUITEM_WHIRLPOOL, WHIRLPOOL
|
|
db MONMENU_FIELD_MOVE, MONMENUITEM_DIG, DIG
|
|
db MONMENU_FIELD_MOVE, MONMENUITEM_TELEPORT, TELEPORT
|
|
db MONMENU_FIELD_MOVE, MONMENUITEM_SOFTBOILED, SOFTBOILED
|
|
db MONMENU_FIELD_MOVE, MONMENUITEM_HEADBUTT, HEADBUTT
|
|
db MONMENU_FIELD_MOVE, MONMENUITEM_ROCKSMASH, ROCK_SMASH
|
|
db MONMENU_FIELD_MOVE, MONMENUITEM_MILKDRINK, MILK_DRINK
|
|
db MONMENU_FIELD_MOVE, MONMENUITEM_SWEETSCENT, SWEET_SCENT
|
|
; options
|
|
db MONMENU_MENUOPTION, MONMENUITEM_STATS, MONMENUVALUE_STATS
|
|
db MONMENU_MENUOPTION, MONMENUITEM_SWITCH, MONMENUVALUE_SWITCH
|
|
db MONMENU_MENUOPTION, MONMENUITEM_ITEM, MONMENUVALUE_ITEM
|
|
db MONMENU_MENUOPTION, MONMENUITEM_CANCEL, MONMENUVALUE_CANCEL
|
|
db MONMENU_MENUOPTION, MONMENUITEM_MOVE, MONMENUVALUE_MOVE
|
|
db MONMENU_MENUOPTION, MONMENUITEM_MAIL, MONMENUVALUE_MAIL
|
|
db MONMENU_MENUOPTION, MONMENUITEM_ERROR, MONMENUVALUE_ERROR
|
|
assert_table_length NUM_MONMENUITEMS
|
|
db -1 ; end
|