From be28a0ff4eb4ba04dcbd0fc025b3a68af535a0a1 Mon Sep 17 00:00:00 2001 From: Rangi Date: Sun, 25 Feb 2018 19:50:48 -0500 Subject: [PATCH] Meaningful $ff values --- engine/battle/core.asm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/engine/battle/core.asm b/engine/battle/core.asm index a1ccc0340..2f3fdeb4d 100644 --- a/engine/battle/core.asm +++ b/engine/battle/core.asm @@ -3324,7 +3324,7 @@ AddBattleParticipant: ; 3d581 ; 3d599 FindPkmnInOTPartyToSwitchIntoBattle: ; 3d599 - ld b, $ff + ld b, -1 ld a, $1 ld [wBuffer1], a ld [wBuffer2], a @@ -3468,7 +3468,7 @@ ScoreMonTypeMatchups: ; 3d672 ld a, [wBuffer1] and a jr z, .okay2 - ld b, $ff + ld b, -1 ld c, a .loop3 inc b @@ -3477,7 +3477,7 @@ ScoreMonTypeMatchups: ; 3d672 jr .quit .okay2 - ld b, $ff + ld b, -1 ld a, [wBuffer2] ld c, a .loop4 @@ -8849,13 +8849,13 @@ BattleEnd_HandleRoamMons: ; 3f998 .caught_or_defeated_roam_mon call GetRoamMonHP - ld [hl], $0 + ld [hl], 0 call GetRoamMonMapGroup - ld [hl], $ff + ld [hl], GROUP_N_A call GetRoamMonMapNumber - ld [hl], $ff + ld [hl], MAP_N_A call GetRoamMonSpecies - ld [hl], $0 + ld [hl], 0 ret .not_roaming