diff options
author | Rangi <35663410+Rangi42@users.noreply.github.com> | 2018-07-29 19:56:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-29 19:56:54 -0400 |
commit | 98e670f3637b5f845a91423ee2d624d2f1e331a6 (patch) | |
tree | 20bacd2c3cd766eedddd636de59a99af1d662866 /engine/menus/start_menu.asm | |
parent | 2ec900d96c3b6020be0816151b9ad606c04114b5 (diff) | |
parent | e346cc7b4152578106f7708363b41d076a3e8d52 (diff) |
Merge pull request #548 from Rangi42/master
Add meaningful aliases for wd265
Diffstat (limited to 'engine/menus/start_menu.asm')
-rw-r--r-- | engine/menus/start_menu.asm | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/engine/menus/start_menu.asm b/engine/menus/start_menu.asm index 54f468497..f6854740e 100644 --- a/engine/menus/start_menu.asm +++ b/engine/menus/start_menu.asm @@ -639,7 +639,7 @@ CantUseItemText: PartyMonItemName: ld a, [wCurItem] - ld [wd265], a + ld [wNamedObjectIndexBuffer], a call GetItemName call CopyName1 ret @@ -842,17 +842,17 @@ TryGiveItemToPartymon: ret .already_holding_item - ld [wd265], a + ld [wNamedObjectIndexBuffer], a call GetItemName ld hl, SwitchAlreadyHoldingText call StartMenuYesNo jr c, .abort call GiveItemToPokemon - ld a, [wd265] + ld a, [wNamedObjectIndexBuffer] push af ld a, [wCurItem] - ld [wd265], a + ld [wNamedObjectIndexBuffer], a pop af ld [wCurItem], a call ReceiveItemFromPokemon @@ -860,13 +860,13 @@ TryGiveItemToPartymon: ld hl, TookAndMadeHoldText call MenuTextBoxBackup - ld a, [wd265] + ld a, [wNamedObjectIndexBuffer] ld [wCurItem], a call GivePartyItem ret .bag_full - ld a, [wd265] + ld a, [wNamedObjectIndexBuffer] ld [wCurItem], a call ReceiveItemFromPokemon ld hl, ItemStorageIsFullText @@ -901,7 +901,7 @@ TakePartyItem: farcall ItemIsMail call GetPartyItemLocation ld a, [hl] - ld [wd265], a + ld [wNamedObjectIndexBuffer], a ld [hl], NO_ITEM call GetItemName ld hl, TookFromText @@ -1654,8 +1654,8 @@ SetUpMoveScreenBG: ld hl, wPartySpecies add hl, de ld a, [hl] - ld [wd265], a - ld e, $2 + ld [wTempIconSpecies], a + ld e, MONICON_MOVES farcall LoadMenuMonIcon hlcoord 0, 1 ld b, 9 @@ -1724,7 +1724,7 @@ PrepareToPlaceMoveData: ld b, $0 add hl, bc ld a, [hl] - ld [wCurMove], a + ld [wCurSpecies], a hlcoord 1, 12 lb bc, 5, 18 jp ClearBox @@ -1741,11 +1741,11 @@ PlaceMoveData: hlcoord 12, 12 ld de, String_MoveAtk call PlaceString - ld a, [wCurMove] + ld a, [wCurSpecies] ld b, a hlcoord 2, 12 predef PrintMoveType - ld a, [wCurMove] + ld a, [wCurSpecies] dec a ld hl, Moves + MOVE_POWER ld bc, MOVE_LENGTH @@ -1755,8 +1755,8 @@ PlaceMoveData: hlcoord 16, 12 cp 2 jr c, .no_power - ld [wd265], a - ld de, wd265 + ld [wDeciramBuffer], a + ld de, wDeciramBuffer lb bc, 1, 3 call PrintNum jr .description |