shithub: pokered

Download patch

ref: 8b194055907d1f69f9e0c7edd232f4e669e3fe48
parent: 1e689606a3e25875af72323ea0f45b06ed044b79
author: Chatot4444 <[email protected]>
date: Thu Aug 11 04:51:18 EDT 2022

Replace Hard-Coded Number With Constant (#381)

Replace a hard coded $a in CheckMapForMon with NUM_WILDMONS

--- a/engine/items/item_effects.asm
+++ b/engine/items/item_effects.asm
@@ -2919,7 +2919,7 @@
 
 CheckMapForMon:
 	inc hl
-	ld b, $a
+	ld b, NUM_WILDMONS
 .loop
 	ld a, [wd11e]
 	cp [hl]