From 1b5e6319cd112f73c7474dbe1aa3947fb6625317 Mon Sep 17 00:00:00 2001 From: Vortyne <104168801+Vortyne@users.noreply.github.com> Date: Mon, 30 Sep 2024 20:50:18 -0400 Subject: [PATCH 1/3] This function sets the trainer just fought to face any direction as well --- engine/overworld/auto_movement.asm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/overworld/auto_movement.asm b/engine/overworld/auto_movement.asm index 8a45735f6e..0452176eea 100644 --- a/engine/overworld/auto_movement.asm +++ b/engine/overworld/auto_movement.asm @@ -266,10 +266,10 @@ RLEList_PewterGymGuy: db NPC_MOVEMENT_RIGHT, 3 db -1 ; end -FreezeEnemyTrainerSprite:: +SetEnemyTrainerToStayAndFaceAnyDirection:: ld a, [wCurMap] cp POKEMON_TOWER_7F - ret z ; the Rockets on Pokemon Tower 7F leave after battling, so don't freeze them + ret z ; the Rockets on Pokemon Tower 7F leave after battling, so don't set them ld hl, RivalIDs ld a, [wEngagedTrainerClass] ld b, a @@ -278,7 +278,7 @@ FreezeEnemyTrainerSprite:: cp -1 jr z, .notRival cp b - ret z ; the rival leaves after battling, so don't freeze him + ret z ; the rival leaves after battling, so don't set him jr .loop .notRival ld a, [wSpriteIndex] From 9b8dcd215b5a667b309d7c8dd3bf56f8dcbb5f89 Mon Sep 17 00:00:00 2001 From: Vortyne <104168801+Vortyne@users.noreply.github.com> Date: Mon, 30 Sep 2024 20:50:52 -0400 Subject: [PATCH 2/3] Update trainers.asm --- home/trainers.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/trainers.asm b/home/trainers.asm index bcd158508d..04752cc282 100644 --- a/home/trainers.asm +++ b/home/trainers.asm @@ -358,7 +358,7 @@ PrintEndBattleText:: pop af ldh [hLoadedROMBank], a ld [MBC1RomBank], a - farcall FreezeEnemyTrainerSprite + farcall SetEnemyTrainerToStayAndFaceAnyDirection jp WaitForSoundToFinish GetSavedEndBattleTextPointer:: From 1c8ad7c793002211e0d768c3d014c454956a325c Mon Sep 17 00:00:00 2001 From: Vortyne <104168801+Vortyne@users.noreply.github.com> Date: Mon, 30 Sep 2024 20:58:06 -0400 Subject: [PATCH 3/3] Update map_objects.asm --- home/map_objects.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/map_objects.asm b/home/map_objects.asm index e200238add..e0d9b6a5db 100644 --- a/home/map_objects.asm +++ b/home/map_objects.asm @@ -219,9 +219,9 @@ SetSpriteMovementBytesToFE:: SetSpriteMovementBytesToFF:: push hl call GetSpriteMovementByte1Pointer - ld [hl], $FF + ld [hl], STAY call GetSpriteMovementByte2Pointer - ld [hl], $FF ; prevent person from walking? + ld [hl], NONE pop hl ret