diff options
Diffstat (limited to 'engine/pokemon/mon_menu.asm')
-rw-r--r-- | engine/pokemon/mon_menu.asm | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/engine/pokemon/mon_menu.asm b/engine/pokemon/mon_menu.asm index aaafad18..5289cb69 100644 --- a/engine/pokemon/mon_menu.asm +++ b/engine/pokemon/mon_menu.asm @@ -26,7 +26,7 @@ TossItemFromPC: push de call PartyMonItemName farcall _CheckTossableItem - ld a, [wItemAttributeParamBuffer] + ld a, [wItemAttributeValue] and a jr nz, .key_item ld hl, .ItemsTossOutHowManyText @@ -93,7 +93,7 @@ ItemsOakWarningText: PartyMonItemName: ld a, [wCurItem] - ld [wNamedObjectIndexBuffer], a + ld [wNamedObjectIndex], a call GetItemName call CopyName1 ret @@ -252,7 +252,7 @@ GiveTakePartyMonItem: jr z, .next call CheckTossableItem - ld a, [wItemAttributeParamBuffer] + ld a, [wItemAttributeValue] and a jr nz, .next @@ -296,17 +296,17 @@ TryGiveItemToPartymon: ret .already_holding_item - ld [wNamedObjectIndexBuffer], a + ld [wNamedObjectIndex], a call GetItemName ld hl, PokemonAskSwapItemText call StartMenuYesNo jr c, .abort call GiveItemToPokemon - ld a, [wNamedObjectIndexBuffer] + ld a, [wNamedObjectIndex] push af ld a, [wCurItem] - ld [wNamedObjectIndexBuffer], a + ld [wNamedObjectIndex], a pop af ld [wCurItem], a call ReceiveItemFromPokemon @@ -314,13 +314,13 @@ TryGiveItemToPartymon: ld hl, PokemonSwapItemText call MenuTextboxBackup - ld a, [wNamedObjectIndexBuffer] + ld a, [wNamedObjectIndex] ld [wCurItem], a call GivePartyItem ret .bag_full - ld a, [wNamedObjectIndexBuffer] + ld a, [wNamedObjectIndex] ld [wCurItem], a call ReceiveItemFromPokemon ld hl, ItemStorageFullText @@ -355,7 +355,7 @@ TakePartyItem: farcall ItemIsMail call GetPartyItemLocation ld a, [hl] - ld [wNamedObjectIndexBuffer], a + ld [wNamedObjectIndex], a ld [hl], NO_ITEM call GetItemName ld hl, PokemonTookItemText @@ -427,13 +427,13 @@ GetPartyItemLocation: ReceiveItemFromPokemon: ld a, 1 - ld [wItemQuantityChangeBuffer], a + ld [wItemQuantityChange], a ld hl, wNumItems jp ReceiveItem GiveItemToPokemon: ld a, 1 - ld [wItemQuantityChangeBuffer], a + ld [wItemQuantityChange], a ld hl, wNumItems jp TossItem @@ -898,7 +898,7 @@ MoveScreenLoop: .skip_joy call PrepareToPlaceMoveData - ld a, [wMoveSwapBuffer] + ld a, [wSwappingMove] and a jr nz, .moving_move call PlaceMoveData @@ -919,21 +919,21 @@ MoveScreenLoop: .b_button call PlayClickSFX call WaitSFX - ld a, [wMoveSwapBuffer] + ld a, [wSwappingMove] and a jp z, .exit - ld a, [wMoveSwapBuffer] + ld a, [wSwappingMove] ld [wMenuCursorY], a xor a - ld [wMoveSwapBuffer], a + ld [wSwappingMove], a hlcoord 1, 2 lb bc, 8, SCREEN_WIDTH - 2 call ClearBox jp .loop .d_right - ld a, [wMoveSwapBuffer] + ld a, [wSwappingMove] and a jp nz, .joy_loop @@ -948,7 +948,7 @@ MoveScreenLoop: jp MoveScreenLoop .d_left - ld a, [wMoveSwapBuffer] + ld a, [wSwappingMove] and a jp nz, .joy_loop ld a, [wCurPartyMon] @@ -999,11 +999,11 @@ MoveScreenLoop: .a_button call PlayClickSFX call WaitSFX - ld a, [wMoveSwapBuffer] + ld a, [wSwappingMove] and a jr nz, .place_move ld a, [wMenuCursorY] - ld [wMoveSwapBuffer], a + ld [wSwappingMove], a call PlaceHollowCursor jp .moving_move @@ -1056,7 +1056,7 @@ MoveScreenLoop: ld d, h ld e, l pop hl - ld a, [wMoveSwapBuffer] + ld a, [wSwappingMove] dec a ld c, a ld b, 0 @@ -1070,7 +1070,7 @@ MoveScreenLoop: .exit xor a - ld [wMoveSwapBuffer], a + ld [wSwappingMove], a ld hl, w2DMenuFlags1 res 6, [hl] call ClearSprites @@ -1136,7 +1136,7 @@ SetUpMoveScreenBG: SetUpMoveList: xor a ldh [hBGMapMode], a - ld [wMoveSwapBuffer], a + ld [wSwappingMove], a ld [wMonType], a predef CopyMonToTempMon ld hl, wTempMonMoves @@ -1201,8 +1201,8 @@ PlaceMoveData: hlcoord 16, 12 cp 2 jr c, .no_power - ld [wDeciramBuffer], a - ld de, wDeciramBuffer + ld [wTextDecimalByte], a + ld de, wTextDecimalByte lb bc, 1, 3 call PrintNum jr .description |