shithub: pokecrystal

Download patch

ref: 013c6fc368ecedc8ea00e031503ed56ef6427772
parent: 3370a04d9edce3b9ab28c9970ce7658e66fbcac0
author: yenatch <[email protected]>
date: Sun Sep 15 14:17:02 EDT 2013

some time-dependent function

--- a/main.asm
+++ b/main.asm
@@ -12071,19 +12071,25 @@
 
 Functionc000: ; c000
 	ld a, [TimeOfDay]
-	ld hl, $4012
-	ld de, $0002
+	ld hl, Datac012
+	ld de, 2
 	call IsInArray
 	inc hl
 	ld c, [hl]
 	ret c
+
 	xor a
 	ld c, a
 	ret
 ; c012
 
-INCBIN "baserom.gbc", $c012, $c01b - $c012
-
+Datac012: ; c012
+	db MORN, 1
+	db DAY,  2
+	db NITE, 4
+	db NITE, 4
+	db $ff
+; c01b
 
 Functionc01b: ; c01b
 	ld hl, SpecialsPointers