shithub: pokecrystal

Download patch

ref: 7494644c9a7b49fca0d79ead23013bbddf181bbb
parent: e29988a362ba421c417a1a2dc4c08afcb0889f34
author: IIMarckus <iimarckus@gmail.com>
date: Fri Jul 6 18:01:34 EDT 2012

Add the Trainer House flag check special (0x67).

--- a/main.asm
+++ b/main.asm
@@ -661,7 +661,7 @@
 	dbw $03,$4472
 	dbw $09,$65ee
 	dbw BANK(SpecialGameboyCheck),SpecialGameboyCheck
-	dbw $03,$44b9
+	dbw BANK(SpecialTrainerHouse),SpecialTrainerHouse
 	dbw $05,$6dc7
 	dbw $0a,$62a0
 	dbw $03,$448f
@@ -800,7 +800,16 @@
 	ld [$c2dd], a
 	ret
 
-INCBIN "baserom.gbc",$c48f,$c5d2 - $c48f
+INCBIN "baserom.gbc",$c48f,$c4b9 - $c48f
+
+SpecialTrainerHouse: ; 0xc4b9
+	ld a, 0
+	call Function2fcb
+	ld a, [$abfd] ; XXX what is this memory location?
+	ld [$c2dd], a
+	jp Function2fe1
+
+INCBIN "baserom.gbc",$c4c7,$c5d2 - $c4c7
 
 PrintNumber_PrintDigit: ; c5d2
 INCBIN "baserom.gbc",$c5d2,$c644 - $c5d2
--