summaryrefslogtreecommitdiff
path: root/engine/mon_menu.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2018-02-03 18:21:53 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2018-02-03 19:42:56 -0500
commit32ed487a476e01759d3d9dbc818d8566ae2c9cb7 (patch)
tree669e90b56d36f17efff5f673235193f5298c0ceb /engine/mon_menu.asm
parent6ff2cb20e67db2054486fc5dc48eb9263298d4ad (diff)
parentb35eb72290b964b98844afbe741bb7ede34b9ef3 (diff)
Merge branch 'master' of https://github.com/pret/pokecrystal
# Conflicts: # audio/engine.asm # constants/gfx_constants.asm # constants/map_data_constants.asm # constants/pokemon_data_constants.asm # constants/sprite_constants.asm # constants/wram_constants.asm # data/maps/data.asm # engine/battle/ai/scoring.asm # engine/battle/core.asm # engine/battle/effect_commands.asm # engine/battle/misc.asm # engine/battle_anims/getpokeballwobble.asm # engine/breeding.asm # engine/buy_sell_toss.asm # engine/decorations.asm # engine/events/battle_tower/battle_tower.asm # engine/events/battle_tower/rules.asm # engine/events/buena.asm # engine/events/bug_contest/contest_2.asm # engine/events/daycare.asm # engine/events/dratini.asm # engine/events/halloffame.asm # engine/events/happiness_egg.asm # engine/events/kurt.asm # engine/events/lucky_number.asm # engine/events/magnet_train.asm # engine/events/overworld.asm # engine/events/pokerus/pokerus.asm # engine/events/print_unown.asm # engine/events/print_unown_2.asm # engine/events/unown_walls.asm # engine/item_effects.asm # engine/link.asm # engine/mon_menu.asm # engine/player_object.asm # engine/routines/playslowcry.asm # engine/scripting.asm # engine/search.asm # engine/search2.asm # engine/specials.asm # engine/start_menu.asm # engine/timeset.asm # home/battle_vars.asm # home/map.asm # maps/GoldenrodUndergroundSwitchRoomEntrances.asm # maps/IlexForest.asm # maps/KrissHouse2F.asm # maps/Route39Barn.asm # mobile/mobile_12_2.asm # mobile/mobile_40.asm # mobile/mobile_5f.asm # wram.asm
Diffstat (limited to 'engine/mon_menu.asm')
-rwxr-xr-xengine/mon_menu.asm28
1 files changed, 14 insertions, 14 deletions
diff --git a/engine/mon_menu.asm b/engine/mon_menu.asm
index 8749f0df6..088b1b1a3 100755
--- a/engine/mon_menu.asm
+++ b/engine/mon_menu.asm
@@ -13,7 +13,7 @@ MonSubmenu: ; 24d19
ld a, 1
ld [hBGMapMode], a
call MonMenuLoop
- ld [MenuSelection], a
+ ld [wMenuSelection], a
call ExitMenu
ret
@@ -28,7 +28,7 @@ MonSubmenu: ; 24d19
.GetTopCoord: ; 24d47
; TopCoord = 1 + BottomCoord - 2 * (NumSubmenuItems + 1)
- ld a, [Buffer1]
+ ld a, [wBuffer1]
inc a
add a
ld b, a
@@ -44,7 +44,7 @@ MonMenuLoop: ; 24d59
.loop
ld a, MENU_UNUSED_3 | MENU_BACKUP_TILES_2 ; flags
ld [wMenuDataFlags], a
- ld a, [Buffer1] ; items
+ ld a, [wBuffer1] ; items
ld [wMenuDataItems], a
call InitVerticalMenuCursor
ld hl, w2DMenuFlags1
@@ -68,7 +68,7 @@ MonMenuLoop: ; 24d59
dec a
ld c, a
ld b, 0
- ld hl, Buffer2
+ ld hl, wBuffer2
add hl, bc
ld a, [hl]
ret
@@ -78,7 +78,7 @@ PopulateMonMenu: ; 24d91
call MenuBoxCoord2Tile
ld bc, 2 * SCREEN_WIDTH + 2
add hl, bc
- ld de, Buffer2
+ ld de, wBuffer2
.loop
ld a, [de]
inc de
@@ -122,7 +122,7 @@ GetMonMenuString: ; 24db0
GetMonSubmenuItems: ; 24dd4
call ResetMonSubmenu
- ld a, [CurPartySpecies]
+ ld a, [wCurPartySpecies]
cp EGG
jr z, .egg
ld a, [wLinkMode]
@@ -176,7 +176,7 @@ GetMonSubmenuItems: ; 24dd4
call AddMonMenuItem
.skip2
- ld a, [Buffer1]
+ ld a, [wBuffer1]
cp NUM_MONMENU_ITEMS
jr z, .ok2
ld a, MONMENUITEM_CANCEL
@@ -220,18 +220,18 @@ IsFieldMove: ; 24e52
ResetMonSubmenu: ; 24e68
xor a
- ld [Buffer1], a
- ld hl, Buffer2
+ ld [wBuffer1], a
+ ld hl, wBuffer2
ld bc, NUM_MONMENU_ITEMS + 1
call ByteFill
ret
; 24e76
TerminateMonSubmenu: ; 24e76
- ld a, [Buffer1]
+ ld a, [wBuffer1]
ld e, a
ld d, 0
- ld hl, Buffer2
+ ld hl, wBuffer2
add hl, de
ld [hl], -1
ret
@@ -241,12 +241,12 @@ AddMonMenuItem: ; 24e83
push hl
push de
push af
- ld a, [Buffer1]
+ ld a, [wBuffer1]
ld e, a
inc a
- ld [Buffer1], a
+ ld [wBuffer1], a
ld d, 0
- ld hl, Buffer2
+ ld hl, wBuffer2
add hl, de
pop af
ld [hl], a