@@ -1183,17 +1183,17 @@ SlideDownFaintedMonPic:
11831183 push af
11841184 set BIT_NO_TEXT_DELAY , a
11851185 ld [ wStatusFlags5 ], a
1186- ld b , 7 ; number of times to slide
1186+ ld b , PIC_HEIGHT ; number of times to slide
11871187.slideStepLoop ; each iteration, the mon is slid down one row
11881188 push bc
11891189 push de
11901190 push hl
1191- ld b , 6 ; number of rows
1191+ ld b , PIC_HEIGHT - 1 ; number of rows
11921192.rowLoop
11931193 push bc
11941194 push hl
11951195 push de
1196- ld bc , $ 7
1196+ ld bc , PIC_WIDTH
11971197 call CopyData
11981198 pop de
11991199 pop hl
@@ -1225,7 +1225,8 @@ SlideDownFaintedMonPic:
12251225 ret
12261226
12271227SevenSpacesText:
1228- db " @"
1228+ ds PIC_WIDTH , ' '
1229+ db "@"
12291230
12301231; slides the player or enemy trainer off screen
12311232; a is the number of tiles to slide it horizontally (always 9 for the player trainer or 8 for the enemy trainer)
@@ -1237,7 +1238,7 @@ SlideTrainerPicOffScreen:
12371238.slideStepLoop ; each iteration, the trainer pic is slid one tile left/right
12381239 push bc
12391240 push hl
1240- ld b , 7 ; number of rows
1241+ ld b , PIC_HEIGHT ; number of rows
12411242.rowLoop
12421243 push hl
12431244 ldh a , [ hSlideAmount ]
@@ -1794,7 +1795,7 @@ AnimateRetreatingPlayerMon:
17941795 lb bc , 7 , 7
17951796 jp ClearScreenArea
17961797
1797- ; Copies player's current pokemon's current HP and status into the party
1798+ ; Copies player's current pokemon's current HP, party pos, and status into the party
17981799; struct data so it stays after battle or switching
17991800ReadPlayerMonCurHPAndStatus:
18001801 ld a , [ wPlayerMonNumber ]
@@ -1804,7 +1805,7 @@ ReadPlayerMonCurHPAndStatus:
18041805 ld d , h
18051806 ld e , l
18061807 ld hl , wBattleMonHP
1807- ld bc , $ 4 ; 2 bytes HP, 1 byte unknown (unused?), 1 byte status
1808+ ld bc , MON_STATUS + 1 - MON_HP ; also copies party pos in-between HP and status
18081809 jp CopyData
18091810
18101811DrawHUDsAndHPBars:
@@ -6352,7 +6353,7 @@ LoadPlayerBackPic:
63526353 ld [ hl ], d ; OAM Y
63536354 inc hl
63546355 ld [ hl ], e ; OAM X
6355- ld a , $ 8 ; height of tile
6356+ ld a , TILE_HEIGHT
63566357 add d ; increase Y by height of tile
63576358 ld d , a
63586359 inc hl
@@ -6366,7 +6367,7 @@ LoadPlayerBackPic:
63666367 ldh a , [ hOAMTile ]
63676368 add $ 4 ; increase tile number by 4
63686369 ldh [ hOAMTile ], a
6369- ld a , $ 8 ; width of tile
6370+ ld a , TILE_WIDTH
63706371 add e ; increase X by width of tile
63716372 ld e , a
63726373 dec b
@@ -6381,7 +6382,7 @@ LoadPlayerBackPic:
63816382 ld de , sSpriteBuffer1
63826383 ldh a , [ hLoadedROMBank ]
63836384 ld b , a
6384- ld c , 7 * 7
6385+ ld c , PIC_SIZE
63856386 call CopyVideoData
63866387 xor a
63876388 ld [ rRAMG ], a
0 commit comments