diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-02-03 18:21:53 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-02-03 19:42:56 -0500 |
commit | 32ed487a476e01759d3d9dbc818d8566ae2c9cb7 (patch) | |
tree | 669e90b56d36f17efff5f673235193f5298c0ceb /engine/routines/switchpartymons.asm | |
parent | 6ff2cb20e67db2054486fc5dc48eb9263298d4ad (diff) | |
parent | b35eb72290b964b98844afbe741bb7ede34b9ef3 (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/routines/switchpartymons.asm')
-rw-r--r-- | engine/routines/switchpartymons.asm | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/engine/routines/switchpartymons.asm b/engine/routines/switchpartymons.asm index 1379dff9c..b01178417 100644 --- a/engine/routines/switchpartymons.asm +++ b/engine/routines/switchpartymons.asm @@ -1,17 +1,17 @@ _SwitchPartyMons: ld a, [wd0e3] dec a - ld [Buffer3], a + ld [wBuffer3], a ld b, a ld a, [wMenuCursorY] dec a - ld [Buffer2], a + ld [wBuffer2], a cp b jr z, .skip call .SwapMonAndMail - ld a, [Buffer3] + ld a, [wBuffer3] call .ClearSprite - ld a, [Buffer2] + ld a, [wBuffer2] call .ClearSprite .skip ret @@ -25,7 +25,7 @@ _SwitchPartyMons: ld a, " " call ByteFill pop af - ld hl, Sprite01 + ld hl, wVirtualOAMSprite00 ld bc, 4 * SPRITEOAMSTRUCT_LENGTH call AddNTimes ld de, SPRITEOAMSTRUCT_LENGTH @@ -43,14 +43,14 @@ _SwitchPartyMons: push hl push de push bc - ld bc, PartySpecies - ld a, [Buffer2] + ld bc, wPartySpecies + ld a, [wBuffer2] ld l, a ld h, $0 add hl, bc ld d, h ld e, l - ld a, [Buffer3] + ld a, [wBuffer3] ld l, a ld h, $0 add hl, bc @@ -60,16 +60,16 @@ _SwitchPartyMons: ld [hl], a pop af ld [de], a - ld a, [Buffer2] - ld hl, PartyMon1Species + ld a, [wBuffer2] + ld hl, wPartyMon1Species ld bc, PARTYMON_STRUCT_LENGTH call AddNTimes push hl ld de, wd002 ld bc, PARTYMON_STRUCT_LENGTH call CopyBytes - ld a, [Buffer3] - ld hl, PartyMon1 + ld a, [wBuffer3] + ld hl, wPartyMon1 ld bc, PARTYMON_STRUCT_LENGTH call AddNTimes pop de @@ -80,13 +80,13 @@ _SwitchPartyMons: ld hl, wd002 ld bc, PARTYMON_STRUCT_LENGTH call CopyBytes - ld a, [Buffer2] - ld hl, PartyMonOT + ld a, [wBuffer2] + ld hl, wPartyMonOT call SkipNames push hl call .CopyNameTowd002 - ld a, [Buffer3] - ld hl, PartyMonOT + ld a, [wBuffer3] + ld hl, wPartyMonOT call SkipNames pop de push hl @@ -94,13 +94,13 @@ _SwitchPartyMons: pop de ld hl, wd002 call .CopyName - ld hl, PartyMonNicknames - ld a, [Buffer2] + ld hl, wPartyMonNicknames + ld a, [wBuffer2] call SkipNames push hl call .CopyNameTowd002 - ld hl, PartyMonNicknames - ld a, [Buffer3] + ld hl, wPartyMonNicknames + ld a, [wBuffer3] call SkipNames pop de push hl @@ -109,7 +109,7 @@ _SwitchPartyMons: ld hl, wd002 call .CopyName ld hl, sPartyMail - ld a, [Buffer2] + ld a, [wBuffer2] ld bc, MAIL_STRUCT_LENGTH call AddNTimes push hl @@ -119,7 +119,7 @@ _SwitchPartyMons: call GetSRAMBank call CopyBytes ld hl, sPartyMail - ld a, [Buffer3] + ld a, [wBuffer3] ld bc, MAIL_STRUCT_LENGTH call AddNTimes pop de |