shithub: pokecrystal

Download patch

ref: 01618d3cc46af567eea6c72ec88a2488002ca2b0
parent: f1bab45624a3a2d5f6bf5b63e912382de0a30abd
author: Rangi <[email protected]>
date: Sun Jun 30 10:20:25 EDT 2019

Define constants for both battle transition tiles

--- a/engine/battle/battle_transition.asm
+++ b/engine/battle/battle_transition.asm
@@ -7,6 +7,7 @@
 BATTLETRANSITION_END              EQU $80
 
 BATTLETRANSITION_SQUARE EQU "8" ; $fe
+BATTLETRANSITION_BLACK  EQU "9" ; $ff
 
 DoBattleTransition:
 	call .InitGFX
@@ -463,7 +464,7 @@
 	ld c, a
 	inc de
 .loop1
-	ld [hl], $ff
+	ld [hl], BATTLETRANSITION_BLACK
 	ld a, [wcf65]
 	bit RIGHT_QUADRANT_F, a
 	jr z, .leftside
@@ -572,9 +573,9 @@
 ; If the tile has already been blacked out,
 ; sample a new tile
 	ld a, [hl]
-	cp $ff
+	cp BATTLETRANSITION_BLACK
 	jr z, .y_loop
-	ld [hl], $ff
+	ld [hl], BATTLETRANSITION_BLACK
 	ret
 
 StartTrainerBattle_LoadPokeBallGraphics:
@@ -809,7 +810,7 @@
 	db -1
 
 .Copy:
-	ld a, $ff
+	ld a, BATTLETRANSITION_BLACK
 .row
 	push bc
 	push hl