shithub: pokered

Download patch

ref: 15f56e7ab26be2fe7a6f1f05d4b0d423cf3bc00e
parent: d6de00bbbb592b533f816d398c95673bc998dae4
author: U-Fish-PC\Daniel <corrnondacqb@yahoo.com>
date: Mon Apr 7 12:39:11 EDT 2014

Replace item constants

--- a/main.asm
+++ b/main.asm
@@ -37707,7 +37707,7 @@
 	dw CinnabarIslandScript1
 
 CinnabarIslandScript0: ; 1ca38 (7:4a38)
-	ld b, $2b
+	ld b, SECRET_KEY
 	call IsItemInBag
 	ret nz
 	ld a, [$d361]
@@ -76192,7 +76192,7 @@
 	ret
 
 Func_49755: ; 49755 (12:5755)
-	ld b, $6
+	ld b, BICYCLE
 	jp IsItemInBag
 
 Route16GateTextPointers: ; 4975a (12:575a)
@@ -81493,7 +81493,7 @@
 	cp $5e
 	ret nz
 .asm_5269c
-	ld b, $30
+	ld b, CARD_KEY
 	call IsItemInBag
 	jr z, .asm_526dc
 	call Func_526fd
@@ -89029,10 +89029,10 @@
 	ld a, [$d771]
 	bit 1, a
 	ret nz
-	ld b, $6
+	ld b, BICYCLE
 	call IsItemInBag
 	ret nz
-	ld b, $2d
+	ld b, BIKE_VOUCHER
 	jp IsItemInBag
 
 FanClubTextPointers: ; 59b84 (16:5b84)