shithub: pokecrystal

Download patch

ref: c58a5b8b7a8dcdf47ea87b4f43c93e00f0de5106
parent: ce59c9a84f34600dff097858ab3d00d55eaeaf78
author: yenatch <[email protected]>
date: Wed Apr 30 19:37:50 EDT 2014

Use constants for the skipped dummy TMs.

--- a/main.asm
+++ b/main.asm
@@ -11455,9 +11455,9 @@
 	ld a, c
 
 ; Skip any dummy items.
-	cp $c3 ; TM04-05
+	cp ITEM_C3 ; TM04-05
 	jr c, .done
-	cp $dc ; TM28-29
+	cp ITEM_DC ; TM28-29
 	jr c, .skip
 
 	dec a
@@ -11477,13 +11477,14 @@
 	ld a, c 
 
 ; Skip any gaps.
-	cp 5
+	cp ITEM_C3 - (TM_01 - 1)
 	jr c, .done
-	cp 29
-	jr c, .skip
+	cp ITEM_DC - (TM_01 - 1) - 1
+	jr c, .skip_one
 
+.skip_two
 	inc a
-.skip
+.skip_one
 	inc a
 .done
 	add TM_01